# HG changeset patch # User danieleb # Date 1379672494 -3600 # Node ID e063188e9b6ba91c8602791a65755d0ccd2f8228 # Parent a75ead64973025dc646dbb8a01d5fbd8d58dc3cd another commit diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.bowerrc --- a/sites/all/themes/omega/.bowerrc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -{ - "directory" : "libraries" -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.gitignore --- a/sites/all/themes/omega/.gitignore Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -# Ignore the node modules folder (created by 'npm install'). -node_modules - -# We absolutely don't want to have the .sass-cache in git. -.sass-cache diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.gitignore-contributors --- a/sites/all/themes/omega/.gitignore-contributors Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -# This .gitignore file is only relevant for maintainers and contributors. As we -# are not allowed to host any external libraries on d.o we had to integrate -# Bower into our workflow. This means that we pull in the external libraries -# only on demand. This is actually a nice feature, however, in order to not -# disrupt the git workflow of our users (by adding an actual .gitignore entry -# for the 'components' folder) we should instead add a .gitignore entry to our -# global, personal .gitignore files (~/.gitingore) instead. -ohm/components diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.jshintrc --- a/sites/all/themes/omega/.jshintrc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -{ - "browser": true, - "bitwise": true, - "devel": true, - "curly": true, - "eqeqeq": true, - "forin": true, - "immed": true, - "indent": 2, - "jquery": true, - "latedef": true, - "newcap": true, - "noarg": true, - "quotmark": true, - "regexp": true, - "undef": true, - "unused": true, - "trailing": true, - "smarttabs": true, - "predef": [ - "Drupal", - "Modernizr" - ] -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.ruby-gemset --- a/sites/all/themes/omega/.ruby-gemset Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -omega diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/.ruby-version --- a/sites/all/themes/omega/.ruby-version Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -1.9.3 diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/Gemfile --- a/sites/all/themes/omega/Gemfile Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -source 'https://rubygems.org' - -group :development do - - # Sass, Compass and extensions. - gem 'sass' # Sass. - gem 'sass-globbing' # Import Sass files based on globbing pattern. - gem 'compass' # Framework built on Sass. - gem 'compass-validator' # So you can `compass validate`. - gem 'compass-normalize' # Compass version of normalize.css. - gem 'compass-rgbapng' # Turns rgba() into .png's for backwards compatibility. - gem 'susy' # Susy grid framework. - gem 'singularitygs' # Alternative to the Susy grid framework. - gem 'toolkit' # Compass utility from the fabulous Snugug. - gem 'breakpoint' # Manages CSS media queries. - gem 'oily_png' # Faster Compass sprite generation. - gem 'css_parser' # Helps `compass stats` output statistics. - - # Dependency to prevent polling. Setup for multiple OS environments. - # Optionally remove the lines not specific to your OS. - # https://github.com/guard/guard#efficient-filesystem-handling - gem 'rb-inotify', '~> 0.9', :require => false # Linux - gem 'rb-fsevent', :require => false # Mac OSX - gem 'rb-fchange', :require => false # Windows - -end diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/Gemfile.lock --- a/sites/all/themes/omega/Gemfile.lock Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - addressable (2.3.5) - breakpoint (2.0.5) - compass (>= 0.12.1) - sass (>= 3.2.0) - chunky_png (1.2.8) - color-schemer (0.2.5) - compass (~> 0.12) - compass-blend-modes (~> 0.0.2) - compass (0.12.2) - chunky_png (~> 1.2) - fssm (>= 0.2.7) - sass (~> 3.1) - compass-blend-modes (0.0.2) - compass - compass-normalize (1.4.3) - compass (>= 0.12.0) - compass-rgbapng (0.2.1) - chunky_png (>= 0.8.0) - compass (>= 0.10.0) - compass-validator (3.0.1) - css_parser (1.3.4) - addressable - ffi (1.9.0) - fssm (0.2.10) - oily_png (1.1.0) - chunky_png (~> 1.2.7) - rb-fchange (0.0.6) - ffi - rb-fsevent (0.9.3) - rb-inotify (0.9.0) - ffi (>= 0.5.0) - sass (3.2.9) - sass-globbing (1.1.0) - sass (>= 3.1) - sassy-strings (0.3.1) - compass (>= 0.12.2) - singularitygs (1.0.8) - breakpoint (>= 2.0.1) - compass (>= 0.12.2) - sass (>= 3.2.1) - susy (1.0.9) - compass (>= 0.12.2) - sass (>= 3.2.0) - toolkit (1.3.3) - breakpoint (>= 2.0.2) - color-schemer (>= 0.2.3) - compass (>= 0.12.2) - sassy-strings (>= 0.1) - singularitygs (>= 1.0.7) - -PLATFORMS - ruby - -DEPENDENCIES - breakpoint - compass - compass-normalize - compass-rgbapng - compass-validator - css_parser - oily_png - rb-fchange - rb-fsevent - rb-inotify (~> 0.9) - sass - sass-globbing - singularitygs - susy - toolkit diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/Gruntfile.js --- a/sites/all/themes/omega/Gruntfile.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -'use strict'; - -module.exports = function (grunt) { - - grunt.initConfig({ - watch: { - options: { - livereload: true - }, - sass: { - files: ['sass/{,**/}*.{scss,sass}'], - tasks: ['compass'] - }, - images: { - files: ['images/**'] - }, - css: { - files: ['stylesheets/{,**/}*.css'] - }, - js: { - files: ['js/{,**/}*.js', '!js/{,**/}*.js'], - tasks: ['jshint', 'uglify:dev'] - } - }, - - compass: { - all: { - options: { - environment: 'production', - force: true, - config: 'config.rb', - bundleExec: true - } - } - }, - - jshint: { - options: { - jshintrc: '.jshintrc' - }, - all: ['js/{,**/}*.js', '!js/{,**/}*.min.js'] - }, - - uglify: { - options: { - mangle: false, - compress: false - }, - all: { - files: { - 'js/jquery.matchmedia.min.js': ['js/jquery.matchmedia.js'], - 'js/jquery.resizeend.min.js': ['js/jquery.resizeend.js'], - 'js/jquery.scrollable.min.js': ['js/jquery.matchmedia.js'], - 'js/omega.admin.min.js': ['js/omega.admin.js'], - 'js/omega.indicator.min.js': ['js/omega.indicator.js'], - 'js/omega.mediaqueries.min.js': ['js/omega.mediaqueries.js'], - 'js/omega.messages.min.js': ['js/omega.messages.js'] - } - } - } - }); - - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-compass'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - - grunt.registerTask('build', [ - 'uglify', - 'compass', - 'jshint' - ]); - -}; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/README.md --- a/sites/all/themes/omega/README.md Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# Omega base theme - -Omega 4.x is a modern, [Sass](http://sass-lang.com/) and [Compass](http://compass-style.org/) enabled Drupal 7 base theme. - -## Installation - -In order to install Omega 4.x, simply place it in your sites theme folder (normally located at sites/all/themes). Omega 4.x is a base theme and as such should **never** be used or modified directly. Instead, you should use the [sub-theming functionality](https://drupal.org/node/225125) provided by Drupal. - -The easiest way to create a new Omega-based sub-theme is by using [Drush](http://drupal.org/project/drush). Omega comes with a very easy-to-use Drush command for generating sub-themes through a command-line wizard. You can start the sub-theme creation wizard by invoking `drush omega-wizard` in the command-line. - -## Documentation - -The [Omega 4.x documentation](https://drupal.org/node/1768686) is hosted on drupal.org as part of the handbook section. Please note that we are still in the process of writing the documentation. If you want to get involved, please contact us. - -## Maintainance - -This version of the Omega theme is maintained by [Sebastian Siemssen](http://drupal.org/user/761344) ([@thefubhy](http://twitter.com/thefubhy)) and [Matt Smith](http://drupal.org/user/1012210) ([@splatio_](http://twitter.com/splatio_)) - -If you wish to get involved, visit us in [#drupal-omega](irc://chat.freenode.net:6667/drupal-omega) on IRC or send us a message through the issue queue or our personal contact forms on [drupal.org](http://drupal.org). diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/apple-touch-icon-precomposed-114x114.png Binary file sites/all/themes/omega/apple-touch-icon-precomposed-114x114.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/apple-touch-icon-precomposed-144x144.png Binary file sites/all/themes/omega/apple-touch-icon-precomposed-144x144.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/apple-touch-icon-precomposed-72x72.png Binary file sites/all/themes/omega/apple-touch-icon-precomposed-72x72.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/apple-touch-icon-precomposed.png Binary file sites/all/themes/omega/apple-touch-icon-precomposed.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/bower.json --- a/sites/all/themes/omega/bower.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -{ - "name": "omega", - "version": "1.0.0", - "dependencies": { - "respond": "fubhy/respond", - "selectivizr": "fubhy/selectivizr", - "html5shiv": "fubhy/html5shiv", - "matchmedia": "fubhy/matchmedia", - "pie": "fubhy/pie" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/config.rb --- a/sites/all/themes/omega/config.rb Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -## -## This file is only needed for Compass/Sass integration. If you are not using -## Compass, you may safely ignore or delete this file. -## -## If you'd like to learn more about Sass and Compass, see the sass/README.txt -## file for more information. -## - -# Default to development if environment is not set. -saved = environment -if (environment.nil?) - environment = :development -else - environment = saved -end - -# Location of the theme's resources. -css_dir = "css" -sass_dir = "sass" -images_dir = "images" -generated_images_dir = images_dir + "/generated" -javascripts_dir = "js" - -# Require any additional compass plugins installed on your system. -require 'compass-normalize' -require 'rgbapng' -require 'toolkit' -require 'susy' -require 'sass-globbing' - -## -## You probably don't need to edit anything below this. -## - -# You can select your preferred output style here (:expanded, :nested, :compact -# or :compressed). -output_style = (environment == :production) ? :expanded : :nested - -# To enable relative paths to assets via compass helper functions. Since Drupal -# themes can be installed in multiple locations, we don't need to worry about -# the absolute path to the theme from the server omega. -relative_assets = true - -# Conditionally enable line comments when in development mode. -line_comments = (environment == :production) ? false : true - -# Output debugging info in development mode. -sass_options = (environment == :production) ? {} : {:debug_info => true} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/layouts/epiqo/epiqo.layout.css --- a/sites/all/themes/omega/css/layouts/epiqo/epiqo.layout.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -/* - Mixins are slightly modified from Benjamin Doherty's first implementations: http://gist.github.com/377912 - rgba-background mixin can now be passed an option $dir variable -*/ diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/layouts/simple/simple.layout.css --- a/sites/all/themes/omega/css/layouts/simple/simple.layout.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,142 +0,0 @@ -/******************************************************************************* - * _layout.scss - * - * Styling of the "simple" layout demonstrating the Compass grid extension Susy - * and building mobile first layouts. - ******************************************************************************/ -.l-header, -.l-main, -.l-footer { - *zoom: 1; - max-width: 1190px; - _width: 1190px; - padding-left: 5px; - padding-right: 5px; - margin-left: auto; - margin-right: auto; - margin-bottom: 20px; -} -.l-header:after, -.l-main:after, -.l-footer:after { - content: ""; - display: table; - clear: both; -} - -.l-region--highlighted, -.l-region--help, -.l-region--sidebar-first, -.l-region--sidebar-second { - margin-bottom: 20px; -} - -@media (min-width: 44em) { - .l-header, - .l-main, - .l-footer { - max-width: 1190px; - } - - .l-branding { - width: 32.20339%; - float: left; - margin-right: 1.69492%; - } - - .l-region--header { - width: 66.10169%; - float: right; - margin-right: 0; - } - - .l-region--navigation { - clear: both; - } - - .sidebar-first .l-content, - .sidebar-second .l-content, - .two-sidebars .l-content { - width: 66.10169%; - float: left; - margin-right: 1.69492%; - } - .sidebar-first .l-region--sidebar-first, - .sidebar-first .l-region--sidebar-second, - .sidebar-second .l-region--sidebar-first, - .sidebar-second .l-region--sidebar-second, - .two-sidebars .l-region--sidebar-first, - .two-sidebars .l-region--sidebar-second { - width: 32.20339%; - float: right; - margin-right: 0; - } - .sidebar-first .l-region--sidebar-second, - .sidebar-second .l-region--sidebar-second, - .two-sidebars .l-region--sidebar-second { - clear: right; - } -} -@media (min-width: 70em) { - .l-header, - .l-main, - .l-footer { - max-width: 1190px; - } - - .l-branding { - width: 36.70886%; - float: left; - margin-right: 1.26582%; - } - - .l-region--header { - width: 62.02532%; - float: right; - margin-right: 0; - } - - .sidebar-first .l-content { - width: 74.68354%; - float: right; - margin-right: 0; - } - .sidebar-first .l-region--sidebar-first { - width: 24.05063%; - float: left; - margin-right: 1.26582%; - } - - .sidebar-second .l-content { - width: 74.68354%; - float: left; - margin-right: 1.26582%; - } - .sidebar-second .l-region--sidebar-second { - width: 24.05063%; - float: right; - margin-right: 0; - clear: none; - } - - .two-sidebars .l-content { - width: 49.36709%; - float: left; - margin-right: 1.26582%; - margin-left: 25.31646%; - } - .two-sidebars .l-region--sidebar-first, - .two-sidebars .l-region--sidebar-second { - width: 24.05063%; - float: left; - margin-right: 1.26582%; - } - .two-sidebars .l-region--sidebar-first { - margin-left: -75.94937%; - } - .two-sidebars .l-region--sidebar-second { - float: right; - margin-right: 0; - clear: none; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/aggregator/aggregator.theme-rtl.css --- a/sites/all/themes/omega/css/modules/aggregator/aggregator.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/** - * @file - * Aggregator theme CSS for right to left languages. - */ -.feed-source .feed-icon { - float: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/aggregator/aggregator.theme.css --- a/sites/all/themes/omega/css/modules/aggregator/aggregator.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Aggregator theme CSS. - */ -.feed-source .feed-icon { - float: right; - /* LTR */ - display: block; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/block/block.admin.css --- a/sites/all/themes/omega/css/modules/block/block.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Styles for the block admin page. - */ -.blocks-admin .region-title { - font-weight: bold; -} -.blocks-admin .region-message { - font-weight: normal; - color: #999; -} -.blocks-admin .region-populated { - display: none; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/block/block.demo.css --- a/sites/all/themes/omega/css/modules/block/block.demo.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -/** - * @file - * Styles for the block demo page. - */ -.block-region { - margin-top: 4px; - margin-bottom: 4px; - padding: 3px; - background-color: #ff6; -} - -.block-demo-backlink, -.block-demo-backlink:link, -.block-demo-backlink:visited { - /* Position */ - position: fixed; - z-index: 499; - left: 20px; - /* LTR */ - /* Box Model */ - padding: 5px 10px; - /* Font */ - color: #000; - font-family: "Lucida Grande", Verdana, sans-serif; - font-size: small; - line-height: 20px; - /* Other Declarations */ - background-color: #B4D7F0; - -webkit-border-radius: 0 0 10px 10px; - -moz-border-radius: 0 0 10px 10px; - -ms-border-radius: 0 0 10px 10px; - -o-border-radius: 0 0 10px 10px; - border-radius: 0 0 10px 10px; -} - -.block-demo-backlink:hover { - text-decoration: underline; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/book/book.admin.css --- a/sites/all/themes/omega/css/modules/book/book.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -/** - * @file - * Administration styles for the Book module. - */ -/** - * Book outline on book edit form. - */ -.js .book-outline-form .form-submit { - display: none; -} - -/** - * Book form for administering a single book's hierarchy. - */ -.book-admin-edit select { - margin-right: 24px; -} - -.book-admin-edit .progress-disabled { - margin-right: 0; -} - -.book-admin-edit .ajax-new-content { - background-color: #ffd; -} - -.book-admin-edit .form-item { - float: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/book/book.theme-rtl.css --- a/sites/all/themes/omega/css/modules/book/book.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/** - * @file - * Basic default book structural CSS for right to left languages. - */ -.book-navigation__previous { - float: right; - text-align: right; -} - -.book-navigation__up { - float: right; -} - -.book-navigation__next { - float: left; - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/book/book.theme.css --- a/sites/all/themes/omega/css/modules/book/book.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -/** - * @file - * Basic theming for the book navigation component. - */ -.book-navigation__previous { - float: left; - /* LTR */ - display: block; - width: 45%; - text-align: left; - /* LTR */ -} - -.book-navigation__up { - float: left; - /* LTR */ - display: block; - width: 10%; - text-align: center; -} - -.book-navigation__next { - float: right; - /* LTR */ - display: block; - width: 45%; - text-align: right; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/color/color.admin-rtl.css --- a/sites/all/themes/omega/css/modules/color/color.admin-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -/** - * @file - * Right-to-left specific stylesheet for the Color module. - */ -#placeholder { - left: 0; - right: auto; -} - -/* Palette */ -.color-form .form-item { - padding-left: 0; - padding-right: 1em; -} - -.color-form label { - float: right; - clear: right; -} - -.color-form .form-text, -.color-form .form-select { - float: right; -} - -.color-form .form-text { - margin-right: 0; - margin-left: 5px; -} - -#palette .hook { - float: right; -} - -#palette .down, -#palette .up, -#palette .both { - background: url('../../../images/modules/color/hook-rtl.png?1376059649') no-repeat 0 0; -} - -#palette .up { - background-position: 0 -27px; -} - -#palette .both { - background-position: 0 -54px; -} - -#palette .lock { - float: right; - right: -10px; -} - -html.js #preview { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/color/color.admin.css --- a/sites/all/themes/omega/css/modules/color/color.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -/** - * @file - * Stylesheet for the administration pages of the Color module. - */ -/* Farbtastic placement */ -.color-form { - max-width: 50em; - position: relative; -} - -#placeholder { - position: absolute; - top: 0; - right: 0; - /* LTR */ -} - -/* Palette */ -.color-form .form-item { - height: 2em; - line-height: 2em; - padding-left: 1em; - /* LTR */ - margin: 0.5em 0; -} - -.color-form label { - float: left; - /* LTR */ - clear: left; - /* LTR */ - width: 10em; -} - -.color-form .form-text, -.color-form .form-select { - float: left; - /* LTR */ -} - -.color-form .form-text { - text-align: center; - margin-right: 5px; - /* LTR */ - cursor: pointer; -} - -#palette .hook { - float: left; - /* LTR */ - margin-top: 3px; - width: 16px; - height: 16px; -} - -#palette .down, -#palette .up, -#palette .both { - background: url('../../../images/modules/color/hook.png?1376059649') no-repeat 100% 0; - /* LTR */ -} - -#palette .up { - background-position: 100% -27px; - /* LTR */ -} - -#palette .both { - background-position: 100% -54px; - /* LTR */ -} - -#palette .lock { - float: left; - /* LTR */ - position: relative; - top: -1.4em; - left: -10px; - /* LTR */ - width: 20px; - height: 25px; - background: url('../../../images/modules/color/lock.png?1376059649') no-repeat 50% 2px; - cursor: pointer; -} - -#palette .unlocked { - background-position: 50% -22px; -} - -#palette .form-item { - width: 20em; -} - -#palette .item-selected { - background: #eee; -} - -/* Preview */ -#preview { - display: none; -} - -html.js #preview { - display: block; - position: relative; - float: left; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/comment/comment.theme-rtl.css --- a/sites/all/themes/omega/css/modules/comment/comment.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right-to-left comment module look and feel styling. - */ -.indented { - margin-left: 0; - margin-right: 25px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/comment/comment.theme.css --- a/sites/all/themes/omega/css/modules/comment/comment.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Comment module look and feel styling. - */ -.indented { - margin-left: 25px; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/contextual/contextual.base-rtl.css --- a/sites/all/themes/omega/css/modules/contextual/contextual.base-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ -/** - * Contextual links structure. - */ -.contextual-links-wrapper { - left: 5px; - right: auto; -} - -.contextual-links-trigger { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/contextual/contextual.base.css --- a/sites/all/themes/omega/css/modules/contextual/contextual.base.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ -/** - * Contextual links behaviour. - */ -.contextual-links-wrapper, -.contextual-links-trigger, -.contextual-links { - display: none !important; -} - -html.js .contextual-links-wrapper, -.contextual-links-region:hover .contextual-links-trigger, -.contextual-links-active .contextual-links-trigger, -.contextual-links-active .contextual-links { - display: block !important; -} - -/** - * Contextual links structure. - */ -.contextual-links-region { - outline: none; - position: relative; -} - -.contextual-links-wrapper { - position: absolute; - z-index: 999; - right: 5px; - /* LTR */ - top: 2px; -} - -.contextual-links-trigger { - overflow: hidden; - text-align: right; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/contextual/contextual.theme-rtl.css --- a/sites/all/themes/omega/css/modules/contextual/contextual.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Styling for contextual links look and feel. - */ -/** - * Contextual links. - */ -.contextual-links { - left: 0; - right: auto; - -webkit-border-radius: 0 4px 4px 4px; - -moz-border-radius: 0 4px 4px 4px; - -ms-border-radius: 0 4px 4px 4px; - -o-border-radius: 0 4px 4px 4px; - border-radius: 0 4px 4px 4px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/contextual/contextual.theme.css --- a/sites/all/themes/omega/css/modules/contextual/contextual.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -/** - * @file - * Styling for contextual links look and feel. - * - * We are proactivly making use of !important to ensure the contextual links - * styling isn't broken by unspecific selectors such as ".block a". In order to - * change the styling of the contextual links you should overwrite this file in - * your subtheme. - */ -/** - * Contextual link wrappers - */ -.contextual-links-region-active { - outline: #999 dashed 1px; -} - -.contextual-links-wrapper { - font-size: 12px !important; -} -.contextual-links-wrapper a { - text-decoration: none; -} - -/** - * Contextual trigger. -*/ -.contextual-links-trigger { - /* Positioning */ - height: 18px; - /* Box Model */ - margin: 0 !important; - padding: 0 2px !important; - width: 28px; - /* Other Declarations */ - background: transparent url('../../../images/modules/contextual/gear-select.png?1376059649') no-repeat 2px 0 !important; - border: 1px solid transparent !important; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - -ms-border-radius: 4px; - -o-border-radius: 4px; - border-radius: 4px; - outline: none; - text-indent: 9999px; - /* LTR */ -} - -.contextual-links-trigger:hover, -.contextual-links-active .contextual-links-trigger { - background-position: 2px -18px !important; -} - -.contextual-links-active .contextual-links-trigger { - /* Positioning */ - position: relative; - z-index: 1; - /* Other Declarations */ - background-color: #fff !important; - border-color: #ccc !important; - border-bottom: none !important; - -moz-border-radius-bottomleft: 0; - -webkit-border-bottom-left-radius: 0; - border-bottom-left-radius: 0; - -moz-border-radius-bottomright: 0; - -webkit-border-bottom-right-radius: 0; - border-bottom-right-radius: 0; -} - -/** - * Contextual links. - */ -.contextual-links { - /* Position */ - position: absolute; - right: 0; - /* LTR */ - top: 18px; - /* Box Model */ - margin: 0 !important; - padding: 0 !important; - /* Other Declarations */ - background-color: #fff !important; - border: 1px solid #ccc !important; - -webkit-border-radius: 4px 0 4px 4px; - -moz-border-radius: 4px 0 4px 4px; - -ms-border-radius: 4px 0 4px 4px; - -o-border-radius: 4px 0 4px 4px; - border-radius: 4px 0 4px 4px; - /* LTR */ - text-align: left; - white-space: nowrap; -} -.contextual-links li { - margin: 0 !important; - padding: 0 !important; - line-height: 100%; - list-style: none; - list-style-image: none; -} -.contextual-links a { - display: block; - margin: 0 !important; - padding: 5px 10px !important; - color: #333 !important; - font-size: 12px !important; -} -.contextual-links a:hover { - background-color: #bfdcee !important; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/field/field.theme-rtl.css --- a/sites/all/themes/omega/css/modules/field/field.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ -/** - * Field display. - */ -.field--label-inline .field__label, -.field--label-inline .field__items { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/field/field.theme.css --- a/sites/all/themes/omega/css/modules/field/field.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ -/** - * Field display. - */ -.field__label { - font-weight: bold; -} - -.field--label-inline .field__label, -.field--label-inline .field__items { - float: left; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/field_ui/field_ui.admin-rtl.css --- a/sites/all/themes/omega/css/modules/field_ui/field_ui.admin-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Right-to-left specific stylesheet for the Field UI module. - */ -/** - *'Manage fields' and 'Manage display' overviews. - */ -.field-ui-overview { - /* Add New Row */ -} -.field-ui-overview .add-new .label-input { - float: right; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/field_ui/field_ui.admin.css --- a/sites/all/themes/omega/css/modules/field_ui/field_ui.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -/** - * @file - * Stylesheet for the Field UI module. - */ -/** - *'Manage fields' and 'Manage display' overviews. - */ -.field-ui-overview { - /* Add New Row */ - /* Hidden Messages */ -} -.field-ui-overview .add-new td { - vertical-align: top; -} -.field-ui-overview .add-new .label-input { - float: left; - /* LTR */ -} -.field-ui-overview .add-new .tabledrag-changed { - display: none; -} -.field-ui-overview .add-new .form-type-machine-name .description { - white-space: normal; -} -.field-ui-overview .region-add-new-title { - display: none; -} -.field-ui-overview .region-populated { - display: none; -} - -/** - * 'Manage display' overview - */ -.field-display-overview .field-formatter-settings-editing td { - vertical-align: top; -} -.field-display-overview .field-formatter-settings-editing .field-formatter-type { - display: none; -} - -.field-ui-display-overview-form #edit-refresh { - display: none; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/file/file.theme.css --- a/sites/all/themes/omega/css/modules/file/file.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -/** - * @file - * Admin stylesheet for file module. - */ -/** - * Managed file element. - */ -.form-managed-file .progress-disabled { - float: none; - display: inline; -} -.form-managed-file .ajax-progress, -.form-managed-file .throbber { - float: none; -} -.form-managed-file .ajax-progress-bar { - display: none; - width: 28em; - margin-top: 4px; - padding: 0; -} -.form-managed-file .ajax-progress-bar .bar { - margin: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/filter/filter.theme.css --- a/sites/all/themes/omega/css/modules/filter/filter.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/** - * @file - * Styling for the filter module. - */ -/** - * Top Level Wrapper - * Contains the form item being filtered, the filter format form item and - * formatting guidelines. - */ -.text-format-wrapper .form-item { - margin-bottom: 0; -} -.text-format-wrapper .description { - margin-top: 0.5em; -} - -/* Filter Format Wrapper. */ -.filter-wrapper { - border-top: 0; - margin: 0; -} -.filter-wrapper .form-item { - float: left; - padding: 0 0 0.5em 1.5em; -} -.filter-wrapper .form-item label { - display: inline; -} - -/* More Information Link. */ -.filter-help { - float: right; - padding: 0 1.5em 0.5em; -} -.filter-help a { - background: transparent url('../../../images/misc/help.png?1376059649') right center no-repeat; - padding: 0 20px; -} - -/* Filter Guidelines */ -.filter-guidelines { - clear: left; - padding: 0 1.5em; -} - -/* Filter formatting tips. */ -.tips { - font-size: 0.9em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/forum/forum.theme-rtl.css --- a/sites/all/themes/omega/css/modules/forum/forum.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Right-to-left styling for the Forum module. - */ -.forum-icon { - float: right; - margin-left: 0; - margin-right: 0.4em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/forum/forum.theme.css --- a/sites/all/themes/omega/css/modules/forum/forum.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/** - * @file - * Styling for the Forum module. - */ -/* Forum Status Icons */ -.forum-icon { - float: left; - width: 24px; - height: 24px; - margin-right: 0.4em; - background-image: url('../../../images/modules/forum/forum-icons.png?1376059649'); - background-repeat: no-repeat; - text-indent: -9999px; -} - -.forum-icon--status-new { - background-position: -24px 0; -} - -.forum-icon--status-hot { - background-position: -48px 0; -} - -.forum-icon--status-hot-new { - background-position: -72px 0; -} - -.forum-icon--status-sticky { - background-position: -96px 0; -} - -.forum-icon--status-closed { - background-position: -120px 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/image/image.admin.css --- a/sites/all/themes/omega/css/modules/image/image.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -/** - * @file - * Admin styles for the image module. - */ -/** - * Image style configuration pages. - */ -/* Add new effect form. */ -.image-style-new, -.image-style-new div { - display: inline; -} - -/* Image style columns. */ -.image-style-preview__col { - float: left; - top: 50%; - width: 48%; - padding-bottom: 2em; - text-align: center; -} - -/* Image style preview images. */ -.image-style-preview__preview-image { - margin: auto; - position: relative; -} - -.preview-image__width { - position: absolute; - height: 2px; - left: -1px; - bottom: -6px; - border: 1px solid #666; - border-top: none; -} -.preview-image__width .dimension { - position: relative; - top: 4px; -} - -.preview-image__height { - position: absolute; - right: -6px; - top: -1px; - width: 2px; - border: 1px solid #666; - border-left: none; -} -.preview-image__height .dimension { - position: absolute; - height: 2em; - top: 50%; - left: 10px; - margin-top: -1em; -} - -/** - * Image anchor form element. - */ -.image-anchor { - width: auto; -} -.image-anchor .even, -.image-anchor .odd { - background: none; -} -.image-anchor td { - border: 1px solid #CCC; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/image/image.theme-rtl.css --- a/sites/all/themes/omega/css/modules/image/image.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Right-to-left styling for the Forum module. - */ -/** - * Image upload widget. - */ -.image-preview { - float: right; - padding: 0 0 10px 10px; -} - -.image-widget-data { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/image/image.theme.css --- a/sites/all/themes/omega/css/modules/image/image.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/** - * @file - * Styles for the image module. - */ -/** - * Image upload widget. - */ -.image-preview { - float: left; - /* LTR */ - padding: 0 10px 10px 0; - /* LTR */ -} - -.image-widget-data { - float: left; - /* LTR */ -} -.image-widget-data .text-field { - width: auto; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/locale/locale.admin-rtl.css --- a/sites/all/themes/omega/css/modules/locale/locale.admin-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Right to left admin styles for the locale module. - */ -.locale-translation-filter-form .form-item-language, -.locale-translation-filter-form .form-item-translation, -.locale-translation-filter-form .form-item-group { - float: right; - padding-left: .8em; - padding-right: 0; -} -.locale-translation-filter-form .form-actions { - float: right; - padding: 3ex 1em 0 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/locale/locale.admin.css --- a/sites/all/themes/omega/css/modules/locale/locale.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/** - * @file - * Admin styles for the locale module. - */ -/* Untranslated locales. */ -.locale-untranslated { - font-style: normal; - text-decoration: line-through; -} - -/* Translations 'exposed' filter form. */ -.locale-translation-filter-form .form-item-language, -.locale-translation-filter-form .form-item-translation, -.locale-translation-filter-form .form-item-group { - float: left; - /* LTR */ - padding-right: .8em; - /* LTR */ - margin: 0.1em; - width: 15em; - /* Opera 9 Fix. */ -} -.locale-translation-filter-form .form-type-select select { - width: 100%; -} -.locale-translation-filter-form .form-actions { - float: left; - /* LTR */ - padding: 3ex 0 0 1em; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/openid/openid.base-rtl.css --- a/sites/all/themes/omega/css/modules/openid/openid.base-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right to left base styles for the Open ID module. - */ -html.js .user-login-form .openid-link, -html.js .user-login .openid-link { - margin-right: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/openid/openid.base.css --- a/sites/all/themes/omega/css/modules/openid/openid.base.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Base styles for the Open ID module. - */ -html.js .user-login-form .openid-link, -html.js .user-login .openid-link { - display: block; - margin-left: 0; - /* LTR */ -} - -html.js .user-login-form .form-item-openid-identifier, -html.js .user-login .form-item-openid-identifier { - display: none; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/openid/openid.theme-rtl.css --- a/sites/all/themes/omega/css/modules/openid/openid.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Right to left theme styles for the openid module. - */ -.form-item-openid-identifier input { - padding-left: 0; - padding-right: 20px; - background-position: right 50%; -} - -.openid-links a { - padding: 0 1.5em 0 0; - background-position: right top; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/openid/openid.theme.css --- a/sites/all/themes/omega/css/modules/openid/openid.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Theme styles for the openid module. - */ -.form-item-openid-identifier { - display: block; -} -.form-item-openid-identifier input { - padding-left: 20px; - /* LTR */ - background-image: url('../../../images/modules/openid/login-bg.png?1376059649'); - background-position: left 50%; - /* LTR */ - background-repeat: no-repeat; -} - -.openid-links li { - display: none; - margin: 0; - padding: 0; - list-style: none; -} -.openid-links a { - padding: 0 0 0 1.5em; - /* LTR */ - background-image: url('../../../images/modules/openid/login-bg.png?1376059649'); - background-position: left top; - /* LTR */ - background-repeat: no-repeat; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/poll/poll.admin.css --- a/sites/all/themes/omega/css/modules/poll/poll.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -/** - * @file - * Admin styles for the poll module. - */ -/* Poll choice form on node form. */ -.poll-choice-table .form-text { - display: inline; - width: auto; -} -.poll-choice-table .choice-flag { - white-space: nowrap; - width: 4em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/poll/poll.theme-rtl.css --- a/sites/all/themes/omega/css/modules/poll/poll.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Right to left theme for the poll voting form and results display. - */ -/* Poll Bars */ -.poll-bars__bar .foreground { - float: right; -} - -.poll-bars__text { - text-align: right; -} - -.poll-bars__percent { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/poll/poll.theme.css --- a/sites/all/themes/omega/css/modules/poll/poll.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -/** - * @file - * Theme for the poll voting form and results display. - */ -/** - * Poll Results - */ -/* Poll Bars */ -.poll-bars__bar { - height: 1em; - margin: 1px 0; - background-color: #ddd; -} -.poll-bars__bar .foreground { - height: 1em; - float: left; - /* LTR */ - background-color: #000; -} - -.poll-bars__percent { - text-align: right; - /* LTR */ -} - -/* Poll Total */ -.poll-results__total { - text-align: center; -} - -/** - * Poll Voting Form - */ -.poll-vote-form { - text-align: center; -} - -.poll-vote-form__choices { - display: table; - margin: 0 auto; - text-align: left; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/search/search.theme-rtl.css --- a/sites/all/themes/omega/css/modules/search/search.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -/** - * @file - * Right to left search module theme. - */ -/** - * Search Results - */ -.search-result__snippet { - padding-left: 0; - padding-right: 1em; -} - -/** - * Advanced Search Form - */ -.search-advanced .criterion { - float: right; - margin-right: 0; - margin-left: 2em; -} -.search-advanced .action { - float: right; - clear: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/search/search.theme.css --- a/sites/all/themes/omega/css/modules/search/search.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/** - * @file - * Search module theme. - */ -/** - * Search Results - */ -.search-result__snippet { - padding-left: 1em; - /* LTR */ -} - -.search-result__info { - font-size: 0.85em; -} - -/** - * Advanced Search Form - */ -.search-advanced .criterion { - float: left; - /* LTR */ - margin-right: 2em; - /* LTR */ -} -.search-advanced .action { - float: left; - /* LTR */ - clear: left; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.admin-rtl.css --- a/sites/all/themes/omega/css/modules/system/system.admin-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/** - * @file - * Right to left system wide administration styles. - */ -/** - * @file - * Right to left administration style for administration blocks. - */ -/* Admin Panels */ -.admin-panel .admin-panel__body { - padding-right: 1em; -} - -/* Admin Panel Page Layout */ -.admin .left { - float: right; -} -.admin .right { - float: left; -} -.admin .expert-link { - margin-left: 0; - margin-right: 1em; - padding-left: 0; - padding-right: 4px; - text-align: left; -} - -/** - * @file - * Right to left administration styles for the appearance page. - */ -/** - * Disabled/Enabled Theme Lists - */ -/* Theme Selector Links */ -.theme-selector__operations li { - float: right; -} - -/* Theme Selector Enabled State */ -.theme-selector--enabled .theme-selector__info { - float: left; -} -.theme-selector--enabled .theme-selector__screenshot { - float: right; -} - -/* Theme Selector Disabled State */ -.theme-selector--disabled { - float: right; - padding: 20px 20px 20px; -} - -/** - * @file - * Right to left administration styles for the modules table. - */ -/* Module Operation Links */ -.module-link { - padding: 1px 20px 1px 0; -} - -.module-link-help { - background: url('../../../images/misc/help.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -.module-link-permissions { - background: url('../../../images/misc/permissions.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -.module-link-configure { - background: url('../../../images/misc/configure.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -/* Module Help */ -.module-help { - float: left; - margin-left: 0; - margin-right: 1em; -} - -/** - * @file - * Right to left administration styles for the system status report. - */ -.merge-up td { - padding: 0 28px 8px 6px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.admin.css --- a/sites/all/themes/omega/css/modules/system/system.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,273 +0,0 @@ -/** - * @file - * System wide administration styles. - */ -/** - * @file - * Administration styles for quick inline admin links. - */ -small .admin-link:before { - content: '['; -} - -small .admin-link:after { - content: ']'; -} - -/** - * @file - * Administration styles for the administration panels. - */ -/* Admin Panels */ -.admin-panel .admin-panel__body { - padding-left: 1em; - /* LTR */ -} - -/* Admin Panel Page Layout */ -.admin { - padding-top: 15px; -} -.admin .left { - float: left; - /* LTR */ - width: 47%; -} -.admin .right { - float: right; - /* LTR */ - width: 47%; -} -.admin .expert-link { - margin-right: 1em; - /* LTR */ - padding-right: 4px; - /* LTR */ - text-align: right; - /* LTR */ -} - -/** - * @file - * Administration styles for the appearance page. - */ -/** - * Disabled/Enabled Theme Lists - */ -.system-themes-list { - margin-bottom: 20px; -} -.system-themes-list h2 { - margin: 0; -} - -.system-themes-list--disabled { - padding-top: 20px; - border-top: 1px solid #cdcdcd; -} - -/** - * Theme Selector - */ -.theme-selector { - padding-top: 20px; -} -.theme-selector h3 { - font-weight: normal; -} - -/* Theme Selector Screenshot */ -.theme-selector__screenshot { - padding: 2px; - width: 294px; - height: 219px; - border: 1px solid #e0e0d8; - line-height: 219px; - text-align: center; -} - -/* Theme Selector Incompatible Message */ -.theme-selector__incompatible { - margin-top: 10px; - font-weight: bold; -} - -/* Theme Selector Links */ -.theme-selector__operations { - margin: 10px 0 0 0; - padding: 0; -} -.theme-selector__operations li { - float: left; - /* LTR */ - margin: 0 1em 0 0; - list-style-type: none; -} - -/* Theme Selector Default State */ -.theme-selector--default h3 { - font-weight: bold; -} -.theme-selector--default .theme-selector__screenshot { - border: 1px solid #aaa; -} - -/* Theme Selector Enabled State */ -.theme-selector--enabled { - width: 820px; -} -.theme-selector--enabled .theme-selector__info { - float: right; - /* LTR */ - width: 500px; -} -.theme-selector--enabled h3 { - margin-top: 0; -} -.theme-selector--enabled .theme-selector__screenshot { - float: left; - /* LTR */ -} - -/* Theme Selector Disabled State */ -.theme-selector--disabled { - float: left; - /* LTR */ - width: 300px; - padding: 20px 20px 20px 0; - /* LTR */ -} -.theme-selector--disabled .theme-selector__info { - min-height: 170px; -} -.theme-selector--disabled .theme-selector__screenshot { - width: 194px; - height: 144px; - line-height: 144px; -} - -/** - * Admin Theme Selector Form - */ -.system-themes-admin-form { - clear: left; -} - -/** - * @file - * Administration styles for compact links. - */ -.compact-link { - margin: 0 0 0.5em 0; -} - -/** - * @file - * Administration styles for the modules table and help. - */ -/* Module State Flags */ -.admin-disabled { - color: #800; -} - -.admin-enabled { - color: #080; -} - -.admin-missing { - color: #f00; -} - -/* Incompatible Modules */ -.incompatible { - font-weight: bold; -} - -/* Module Requirements */ -.admin-requirements, -.admin-required { - font-size: 0.9em; - color: #444; -} - -/* Module Operation Links */ -.module-link { - display: block; - padding: 1px 0 1px 20px; - /* LTR */ - white-space: nowrap; -} - -.module-link-help { - background: url('../../../images/misc/help.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -.module-link-permissions { - background: url('../../../images/misc/permissions.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -.module-link-configure { - background: url('../../../images/misc/configure.png?1376059649') 0 50% no-repeat; - /* LTR */ -} - -/* Module Help */ -.module-help { - float: right; - /* LTR */ - margin-left: 1em; - /* LTR */ -} - -/** - * @file - * Administration styles for the system status report. - */ -/* Status Icons */ -.system-status-report .status-icon { - height: 16px; - width: 16px; - background-repeat: no-repeat; -} -.system-status-report .error .status-icon { - background-image: url('../../../images/misc/message-16-error.png?1376059649'); -} -.system-status-report .warning .status-icon { - background-image: url('../../../images/misc/message-16-warning.png?1376059649'); -} - -/* Merge Cells */ -.merge-down, -.merge-down td { - border-bottom-width: 0 !important; -} - -.merge-up, -.merge-up td { - border-top-width: 0 !important; -} - -.merge-up td { - padding: 0 6px 8px 28px; - /* LTR */ -} - -/** - * @file - * Administration styles for the theme settings. - */ -.theme-settings-left { - float: left; - width: 49%; -} - -.theme-settings-right { - float: right; - width: 49%; -} - -.theme-settings-bottom { - clear: both; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.base-rtl.css --- a/sites/all/themes/omega/css/modules/system/system.base-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -/** - * @file - * Right to left system wide base styles. - */ -/** - * @file - * Right to left base styles for autocomplete functionality. - * - * @see autocomplete.js - */ -/* Animated throbber */ -html.js .form-autocomplete { - background-position: 0% 2px; -} - -html.js .throbbing { - background-position: 0% -18px; -} - -/** - * @file - * Right to left base styling for the tabledrag behavior. - * - * @see tabledrag.js - */ -.draggable .tabledrag-handle { - float: right; - margin-left: 0; -} - -.indentation { - float: right; -} - -.tree-child, -.tree-child-last { - background-position: -65px center; -} - -.tabledrag-toggle-weight-wrapper { - text-align: left; -} - -/** - * @file - * Right to left base styles for the progress behavior. - * - * @see progress.js - */ -/* Bar */ -.progress .percentage { - float: left; -} - -.progress-disabled { - float: right; -} - -.ajax-progress { - float: right; -} - -.ajax-progress .throbber { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.base.css --- a/sites/all/themes/omega/css/modules/system/system.base.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,289 +0,0 @@ -/** - * @file - * System wide base styles. - */ -/** - * @file - * Base styles for autocomplete functionality. - * - * @see autocomplete.js - */ -/* Suggestion list */ -#autocomplete { - position: absolute; - z-index: 100; - overflow: hidden; -} -#autocomplete ul { - margin: 0; - padding: 0; - list-style: none; - list-style-image: none; -} -#autocomplete li { - cursor: default; - white-space: pre; - zoom: 1; - /* IE7 */ -} - -/* Animated throbber */ -html.js .form-autocomplete { - background-image: url('../../../images/misc/throbber.gif?1376059649'); - background-position: 100% 2px; - /* LTR */ - background-repeat: no-repeat; -} - -html.js .throbbing { - background-position: 100% -18px; - /* LTR */ -} - -/** - * @file - * Base styles for collapsible fieldset functionality. - * - * @see collapse.js - */ -html.js fieldset.collapsed { - height: 1em; -} - -html.js fieldset.collapsed .fieldset-wrapper { - display: none; -} - -fieldset.collapsible { - position: relative; -} - -fieldset.collapsible .fieldset-legend { - display: block; -} - -/** - * @file - * Base styles for the resizable textareas functionality. - * - * @see textarea.js - */ -.form-textarea-wrapper textarea { - display: block; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - width: 100%; - margin: 0; -} - -.resizable-textarea .grippie { - height: 9px; - background: #eeeeee url('../../../images/misc/grippie.png?1376059649') no-repeat center 2px; - border: 1px solid #ddd; - border-top-width: 0; - cursor: s-resize; - overflow: hidden; -} - -/** - * @file - * Base styling for the tabledrag behavior. - * - * @see tabledrag.js - */ -body.drag { - cursor: move; -} - -/* Tabledrag Handle */ -.tabledrag-handle { - float: left; - /* LTR */ - overflow: hidden; - text-decoration: none; - cursor: move; -} -.tabledrag-handle .handle { - height: 15px; - width: 15px; - margin: -0.4em 0; - padding: 0.4em; - background: url('../../../images/misc/draggable.png?1376059649') no-repeat 6px 9px; -} -.tabledrag-handle:hover { - text-decoration: none; -} - -.tabledrag-handle-hover .handle { - background-position: 6px -11px; -} - -/* Indentation */ -.indentation { - float: left; - /* LTR */ - width: 20px; -} - -/* Tree Images */ -.tree-child { - background: url('../../../images/misc/tree.png?1376059649') no-repeat 12px center; - /* LTR */ -} - -.tree-child-last { - background: url('../../../images/misc/tree-bottom.png?1376059649') no-repeat 12px center; - /* LTR */ -} - -.tree-child-horizontal { - background: url('../../../images/misc/tree.png?1376059649') no-repeat -12px center; -} - -/* Toggle Weight Link */ -.tabledrag-toggle-weight-wrapper { - text-align: right; - /* LTR */ -} - -/** - * @file - * Base styling for the tableheader behavior. - * - * @see tableheader.js - */ -.sticky-header { - margin-top: 0; - background-color: #fff; -} - -/** - * @file - * Base styles for the progress behavior. - * - * @see progress.js - */ -/* Bar */ -.progress .bar { - background-color: #fff; - border: 1px solid; -} -.progress .filled { - height: 1.5em; - width: 5px; - background-color: #000; -} -.progress .percentage { - float: right; - /* LTR */ -} - -/* Throbber */ -.ajax-progress { - display: inline-block; -} -.ajax-progress .throbber { - float: left; - /* LTR */ - height: 15px; - width: 15px; - margin: 2px; - background: transparent url('../../../images/misc/throbber.gif?1376059649') no-repeat 0px -18px; -} -.ajax-progress .message { - padding-left: 20px; -} - -tr .ajax-progress .throbber { - margin: 0 2px; -} - -.ajax-progress-bar { - width: 16em; -} - -/** - * @file - * System utility classes. - */ -/** - * Inline items. - */ -.container-inline div, -.container-inline label { - display: inline; -} - -/* Fieldset contents always need to be rendered as block. */ -.container-inline .fieldset-wrapper { - display: block; -} - -/** - * Prevent text wrapping. - */ -.nowrap { - white-space: nowrap; -} - -/** - * For anything you want to hide on page load when JS is enabled, so - * that you can use the JS to control visibility and avoid flicker. - */ -html.js .js-hide { - display: none; -} - -/** - * Hide elements from all users. - * - * Used for elements which should not be immediately displayed to any user. An - * example would be a collapsible fieldset that will be expanded with a click - * from a user. The effect of this class can be toggled with the jQuery show() - * and hide() functions. - */ -.element-hidden { - display: none; -} - -/** - * Hide elements visually, but keep them available for screen-readers. - * - * Used for information required for screen-reader users to understand and use - * the site where visual display is undesirable. Information provided in this - * manner should be kept concise, to avoid unnecessary burden on the user. - * "!important" is used to prevent unintentional overrides. - */ -.element-invisible { - position: absolute !important; - clip: rect(1px 1px 1px 1px); - /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - overflow: hidden; - height: 1px; -} - -/** - * The .element-focusable class extends the .element-invisible class to allow - * the element to be focusable when navigated to via the keyboard. - */ -.element-invisible.element-focusable:active, -.element-invisible.element-focusable:focus { - position: static !important; - clip: auto; - overflow: visible; - height: auto; -} - -/** - * Use the clearfix from Compass. - */ -.clearfix { - *zoom: 1; -} -.clearfix:after { - content: ""; - display: table; - clear: both; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.menus.theme-rtl.css --- a/sites/all/themes/omega/css/modules/system/system.menus.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -/** - * @file - * Right to left menu and navigational styles. - */ -/** - * @file - * Styles for a hierarchical menu as generated by theme_menu_tree(). - */ -.menu { - text-align: right; - /* Menu Item Hierarchy Modifiers */ -} -.menu .collapsed { - list-style-image: url('../../../images/misc/menu-collapsed-rtl.png?1376059649'); -} - -/** - * @file - * Inline links as generated by theme_links(). - */ -ul.inline li { - float: right; - margin-right: 0; - margin-left: 1em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.menus.theme.css --- a/sites/all/themes/omega/css/modules/system/system.menus.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/** - * @file - * Menu and navigational styles. - */ -/** - * @file - * Styles for a hierarchical menu as generated by theme_menu_tree(). - */ -.menu { - border: none; - list-style: none; - text-align: left; - /* LTR */ - /* Menu Item Hierarchy Modifiers */ -} -.menu .expanded { - list-style-image: url('../../../images/misc/menu-expanded.png?1376059649'); - list-style-type: circle; -} -.menu .collapsed { - list-style-image: url('../../../images/misc/menu-collapsed.png?1376059649'); - /* LTR */ - list-style-type: disc; -} -.menu .leaf { - list-style-image: url('../../../images/misc/menu-leaf.png?1376059649'); - list-style-type: square; -} - -/* Menu State Modifiers */ -.active { - color: #000; -} - -.menu-disabled { - background: #ccc; -} - -/** - * @file - * Inline links as generated by theme_links(). - */ -.links--inline { - *zoom: 1; - list-style-type: none; - margin: 0; - padding: 0; -} -.links--inline:after { - content: ""; - display: table; - clear: both; -} -.links--inline li { - float: left; - /* LTR */ - margin-right: 1em; - /* LTR */ -} -.links--inline li > a { - display: block; -} - -/** - * @file - * Theme styles for markup generated by theme_menu_local_tasks(). - */ -/* Tabs */ -.tabs a { - background-color: #eee; - text-decoration: none; -} -.tabs a.active { - background-color: #ccc; -} -.tabs a:hover, .tabs a:focus { - background-color: #bbb; -} - -/* Primary Tabs */ -.tabs--primary { - margin-bottom: 1em; - border-bottom: 1px solid #bbb; -} -.tabs--primary a { - padding: 0.3em 0.8em; -} - -/* Secondary Tabs */ -.tabs--secondary a { - padding: 0.2em 0.5em; - margin: 0.4em 0; - font-size: 0.9em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.messages.theme-rtl.css --- a/sites/all/themes/omega/css/modules/system/system.messages.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -/** - * @file - * Right to left theme for for system messages. - */ -/* Message */ -.messages { - padding: 10px 50px 10px 10px; - background-position: 99% 8px; -} -.messages ul { - margin: 0 1em 0 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.messages.theme.css --- a/sites/all/themes/omega/css/modules/system/system.messages.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/** - * @file - * Theme for for system messages. - */ -/* Message */ -.messages { - margin: 6px 0; - padding: 10px 10px 10px 50px; - /* LTR */ - background-position: 8px 8px; - /* LTR */ - background-repeat: no-repeat; - border: 1px solid; -} -.messages ul { - margin: 0 0 0 1em; - /* LTR */ - padding: 0; -} -.messages li { - list-style-image: none; -} - -/* Status Messages */ -.messages--status { - background-image: url('../../../images/misc/message-24-ok.png?1376059649'); - border-color: #be7; -} - -.messages--status, -tr.ok { - background-color: #f8fff0; -} - -.messages--status, -.ok { - color: #234600; -} - -/* Warning Messages */ -.messages--warning { - background-image: url('../../../images/misc/message-24-warning.png?1376059649'); - border-color: #ed5; -} - -.messages--warning, -tr.warning { - background-color: #fffce5; -} - -.messages--warning, -.warning { - color: #333; -} - -/* Error Messages */ -.messages--error { - background-image: url('../../../images/misc/message-24-error.png?1376059649'); - border-color: #ed541d; -} - -.messages--error, -tr.error { - background-color: #fef5f1; -} - -.messages--error, -.error { - color: #333; -} - -.error .error { - color: #8c2e0b; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.theme-rtl.css --- a/sites/all/themes/omega/css/modules/system/system.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -/** - * @file - * Right to left system wide theme styles. - */ -/** - * @file - * Basic right to left styling for common HTML elements. - */ -/* Tables */ -th { - padding-left: 1em; - padding-right: 0; - text-align: right; -} - -/** - * @file - * Right to left theme for collapsible fieldsets. - * - * @see collapse.js - */ -html.js fieldset.collapsible .fieldset-legend { - padding-left: 0; - padding-right: 15px; - background-position: 98% 75%; -} - -html.js fieldset.collapsed .fieldset-legend { - background-image: url('../../../images/misc/menu-collapsed-rtl.png?1376059649'); - background-position: 98% 50%; -} - -/** - * @file - * Right to left theme for the more link. - */ -.more-link { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/system/system.theme.css --- a/sites/all/themes/omega/css/modules/system/system.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,239 +0,0 @@ -/** - * @file - * System wide theme styles. - */ -/** - * @file - * Basic styling for common HTML elements. - */ -/* Fieldsets */ -fieldset { - margin-bottom: 1em; -} - -/* Tables */ -table { - border-collapse: collapse; -} - -th { - padding-right: 1em; - /* LTR */ - background-color: #bbb; - text-align: left; - /* LTR */ -} - -tr.even, -tr.odd { - background-color: #eee; -} - -tr.odd { - background-color: #ddd; -} - -/** - * @file - * Theme for autocomplete. - * - * @see autocomplete.js - */ -#autocomplete { - background: #fff; - border: 1px solid; - color: #000; -} -#autocomplete .selected { - background: #0072b9; - color: #fff; -} - -/** - * @file - * Theme for collapsible fieldsets. - * - * @see collapse.js - */ -html.js fieldset.collapsible .fieldset-legend { - padding-left: 15px; - /* LTR */ - background: url('../../../images/misc/menu-expanded.png?1376059649') 5px 65% no-repeat; - /* LTR */ -} - -html.js fieldset.collapsed { - border-bottom-width: 0; - border-left-width: 0; - border-right-width: 0; -} -html.js fieldset.collapsed .fieldset-legend { - background-image: url('../../../images/misc/menu-collapsed.png?1376059649'); - /* LTR */ - background-position: 5px 50%; - /* LTR */ -} - -.fieldset-legend .summary { - margin-left: 0.5em; - color: #999; - font-size: 0.9em; -} - -/** - * @file - * Theme for the tabledrag behavior. - * - * @see tabledrag.js - */ -.drag { - background-color: #fffff0; -} - -.drag-previous { - background-color: #ffd; -} - -/** - * @file - * Theme for the progress behavior. - * - * @see progress.js - */ -.progress { - font-weight: bold; -} -.progress .bar { - background: #ccc; - border-color: #666; - margin: 0 0.2em; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; -} -.progress .filled { - background: #0072b9 url('../../../images/misc/progress.gif?1376059649'); -} - -/** - * @file - * Theme for the tableselect behavior. - * - * @see tableselect.js -*/ -.selected td { - background: #ffc; -} - -.checkbox, -.checkbox { - text-align: center; -} - -/** - * @form - * Theme for markup generated by Form API. - */ -/* Generic Form Items. */ -.form-item, -.form-actions { - margin-bottom: 1em; -} -.form-item label, -.form-actions label { - display: block; - font-weight: bold; -} -.form-item .description, -.form-actions .description { - font-size: 0.85em; -} - -/* Checkboxes and Radios */ -.form-checkboxes .form-item, -.form-radios .form-item { - margin-bottom: 0.4em; -} -.form-checkboxes .description, -.form-radios .description { - margin-left: 2.4em; -} - -label.option { - display: inline; - font-weight: normal; -} - -.form-checkbox, -.form-radio { - vertical-align: middle; -} - -/* Errors */ -.marker, -.form-required { - color: #f00; -} - -input.error, -textarea.error, -select.error { - border: 2px solid red; -} - -/* Table Form Items */ -tr .form-item { - margin-top: 0; - margin-bottom: 0; - white-space: nowrap; -} - -/* Inline Items */ -.container-inline .form-actions, -.container-inline.form-actions { - margin-top: 0; - margin-bottom: 0; -} - -/** - * @file - * Theme for the markup generated by theme_tablesort_indicator(). - */ -th.active img { - display: inline; -} - -td.active { - background-color: #ddd; -} - -/** - * @file - * Theme for more links. - */ -.more-link { - display: block; - text-align: right; - /* LTR */ -} - -/** - * @file - * Theme for markup generated by theme_pager(). - */ -.pager { - clear: both; - padding: 0; - text-align: center; -} - -.pager__item { - display: inline; - padding: 0.5em; - background-image: none; - list-style-type: none; -} - -.pager__item--current { - font-weight: bold; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/taxonomy/taxonomy.admin.css --- a/sites/all/themes/omega/css/modules/taxonomy/taxonomy.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Administrative styling for the taxonomy module. - */ -.taxonomy-term-divider-top { - border-bottom: none; -} - -.taxonomy-term-divider-bottom { - border-top: 1px dotted #CCC; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.admin-rtl.css --- a/sites/all/themes/omega/css/modules/user/user.admin-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -/** - * @file - * Right to left administrative styling for the user module. - */ -/** - * User Permissions Page - */ -.user-admin-permissions .permission { - padding-left: 0; - padding-right: 1.5em; -} - -/** - * User Roles Page - * - * Override default textfield float to put the "Add role" button next to - * the input textfield. - */ -.user-admin-roles .form-item-name { - float: right; - margin-left: 1em; - margin-right: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.admin.css --- a/sites/all/themes/omega/css/modules/user/user.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/** - * @file - * Administrative styling for the user module. - */ -/** - * User Permissions Page - */ -.user-admin-permissions .module { - font-weight: bold; -} -.user-admin-permissions .permission { - padding-left: 1.5em; - /* LTR */ -} -.user-admin-permissions .form-item { - white-space: normal; -} - -/** - * User Roles Page - * - * Override default textfield float to put the "Add role" button next to - * the input textfield. - */ -.user-admin-roles .edit-name { - clear: both; -} -.user-admin-roles .form-item-name { - float: left; - /* LTR */ - margin-right: 1em; - /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.base-rtl.css --- a/sites/all/themes/omega/css/modules/user/user.base-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -/** - * @file - * Right to left base styles for the user module. - */ diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.base.css --- a/sites/all/themes/omega/css/modules/user/user.base.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/** - * @file - * Base styles for the user module. - */ -div.password-confirm { - visibility: hidden; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.theme-rtl.css --- a/sites/all/themes/omega/css/modules/user/user.theme-rtl.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -/** - * @file - * Right to left theme styling for the user module. - */ -/** - * Password Strength Indicator. - */ -.password-strength { - float: left; -} - -.password-strength-title { - float: right; -} - -.password-strength-text { - float: left; -} - -/** - * Password Confirm. - */ -.password-confirm { - float: left; -} - -/* - * User Profile - * - * Generated by user.module but used by profile.module. - */ -.profile .user-picture { - float: left; - margin: 0 0 1em 1em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/modules/user/user.theme.css --- a/sites/all/themes/omega/css/modules/user/user.theme.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,95 +0,0 @@ -/** - * @file - * Theme styling for the user module. - */ -/** - * Password Strength Indicator. - */ -.password-strength { - float: right; - /* LTR */ - margin-top: 1.2em; - width: 17em; -} - -.password-strength-title { - float: left; - /* LTR */ -} - -.password-strength-text { - float: right; - /* LTR */ - font-weight: bold; -} - -.password-indicator { - clear: both; - height: 0.3em; - width: 100%; - background-color: #C4C4C4; -} -.password-indicator .indicator { - height: 100%; - width: 0%; - background-color: #47C965; -} - -/** - * Password Confirm. - */ -div.password-confirm { - float: right; - /* LTR */ - clear: both; - width: 17em; - margin-top: 1.5em; -} - -/** - * Password Confirm Inputs. - */ -.form-type-password-confirm input { - width: 16em; -} - -/** - * Password Suggestions. - */ -.password-suggestions { - margin: 0.7em 0; - padding: 0.2em 0.5em; - border: 1px solid #B4B4B4; -} - -/* - * User Profile - */ -.user-profile-item__label { - font-weight: bold; -} - -/* Generated by user.module but used by profile.module. */ -.profile { - clear: both; - margin: 1em 0; -} -.profile .user-picture { - float: right; - /* LTR */ - margin: 0 1em 1em 0; - /* LTR */ -} -.profile h3 { - border-bottom: 1px solid #ccc; -} -.profile dl { - margin: 0 0 1.5em 0; -} -.profile dt { - margin: 0 0 0.2em 0; - font-weight: bold; -} -.profile dd { - margin: 0 0 1em 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/omega.admin.css --- a/sites/all/themes/omega/css/omega.admin.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -.form-item.form-item-omega-conditional-comments-html-options, -.form-item.form-item-omega-viewport-widget-minimal, -.omega-settings-container { - border: 1px solid #ccc; - margin-left: 18px; - margin-bottom: 12px; - padding: 9px 18px; - background-color: #f2f2f2; -} - -.fieldset-description { - margin-bottom: 15px; -} - -div.vertical-tabs .vertical-tabs-panes .vertical-tabs-pane fieldset { - border: 1px solid #CCC; - padding: 2.5em 0 0 0; - margin: 1em 0; -} -div.vertical-tabs .vertical-tabs-panes .vertical-tabs-pane fieldset legend { - display: block; -} - -.omega-assets-missing-files { - color: #8c2e0b; - margin: 1em 0 1em 1.5em; -} -.omega-assets-missing-files h3 { - font-size: .9em; - text-transform: uppercase; - margin-bottom: 0; -} - -.omega-layout-selection-wrapper { - margin-bottom: 20px; - min-height: 140px; - position: relative; -} -.omega-layout-selection-wrapper .form-item label.option, -.omega-layout-selection-wrapper .form-item div.description { - padding-left: 130px; -} -.omega-layout-selection-wrapper img { - height: 140px; - width: 120px; - position: absolute; - top: 8px; - margin-left: 1.5em; -} - -.form-item.form-item-omega-requirements { - border: 1px solid #ed541d; - color: #8c2e0b; - background-color: #fef5f1; - margin: 6px 0 16px; - padding: 10px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/omega.development.css --- a/sites/all/themes/omega/css/omega.development.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -.omega-browser-width { - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - -ms-border-radius: 5px; - -o-border-radius: 5px; - border-radius: 5px; - background: url('../images/rgbapng/000000bf-5.png?1376060719'); - background: rgba(0, 0, 0, 0.75); - z-index: 1000; - position: fixed; - bottom: 0; - right: 0; - font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; - font-size: 13px; - color: #fff; - max-width: 100%; - margin: 5px; - padding: 5px 10px; -} - -.region--debug { - background: url('../images/rgbapng/0000001a-5.png?1376060719'); - background: rgba(0, 0, 0, 0.1); - position: relative; - min-height: 29px; - outline: 1px dashed #ccc; -} -.region--debug:before { - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - -ms-border-radius: 3px; - -o-border-radius: 3px; - border-radius: 3px; - background: url('../images/rgbapng/077dc3bf-5.png?1376060719'); - background: rgba(7, 125, 195, 0.75); - font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; - font-size: 11px; - z-index: 50; - position: absolute; - right: 5px; - top: 5px; - padding: 3px 6px; - color: #fff; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/css/omega.messages.css --- a/sites/all/themes/omega/css/omega.messages.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -@charset "UTF-8"; -div.messages { - position: relative; -} - -.close-message { - text-shadow: none; - position: absolute; - right: .4em; - top: -.2em; - text-decoration: none; - color: rgba(0, 0, 0, 0.3); -} -.close-message:before { - font-size: 1.4em; - content: "×"; -} -.close-message:hover, .close-message:focus, .close-message:active { - color: #000; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/favicon.ico Binary file sites/all/themes/omega/favicon.ico has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/layout-icon-placeholder.png Binary file sites/all/themes/omega/images/layout-icon-placeholder.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/arrow-asc.png Binary file sites/all/themes/omega/images/misc/arrow-asc.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/arrow-desc.png Binary file sites/all/themes/omega/images/misc/arrow-desc.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/configure.png Binary file sites/all/themes/omega/images/misc/configure.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/draggable.png Binary file sites/all/themes/omega/images/misc/draggable.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/feed.png Binary file sites/all/themes/omega/images/misc/feed.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/forum-icons.png Binary file sites/all/themes/omega/images/misc/forum-icons.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/grippie.png Binary file sites/all/themes/omega/images/misc/grippie.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/help.png Binary file sites/all/themes/omega/images/misc/help.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/menu-collapsed-rtl.png Binary file sites/all/themes/omega/images/misc/menu-collapsed-rtl.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/menu-collapsed.png Binary file sites/all/themes/omega/images/misc/menu-collapsed.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/menu-expanded.png Binary file sites/all/themes/omega/images/misc/menu-expanded.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/menu-leaf.png Binary file sites/all/themes/omega/images/misc/menu-leaf.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-16-error.png Binary file sites/all/themes/omega/images/misc/message-16-error.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-16-help.png Binary file sites/all/themes/omega/images/misc/message-16-help.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-16-info.png Binary file sites/all/themes/omega/images/misc/message-16-info.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-16-ok.png Binary file sites/all/themes/omega/images/misc/message-16-ok.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-16-warning.png Binary file sites/all/themes/omega/images/misc/message-16-warning.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-24-error.png Binary file sites/all/themes/omega/images/misc/message-24-error.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-24-help.png Binary file sites/all/themes/omega/images/misc/message-24-help.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-24-info.png Binary file sites/all/themes/omega/images/misc/message-24-info.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-24-ok.png Binary file sites/all/themes/omega/images/misc/message-24-ok.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/message-24-warning.png Binary file sites/all/themes/omega/images/misc/message-24-warning.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/permissions.png Binary file sites/all/themes/omega/images/misc/permissions.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/progress.gif Binary file sites/all/themes/omega/images/misc/progress.gif has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/throbber.gif Binary file sites/all/themes/omega/images/misc/throbber.gif has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/tree-bottom.png Binary file sites/all/themes/omega/images/misc/tree-bottom.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/tree.png Binary file sites/all/themes/omega/images/misc/tree.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/watchdog-error.png Binary file sites/all/themes/omega/images/misc/watchdog-error.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/watchdog-ok.png Binary file sites/all/themes/omega/images/misc/watchdog-ok.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/misc/watchdog-warning.png Binary file sites/all/themes/omega/images/misc/watchdog-warning.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/color/hook-rtl.png Binary file sites/all/themes/omega/images/modules/color/hook-rtl.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/color/hook.png Binary file sites/all/themes/omega/images/modules/color/hook.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/color/lock.png Binary file sites/all/themes/omega/images/modules/color/lock.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/contextual/gear-select.png Binary file sites/all/themes/omega/images/modules/contextual/gear-select.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/forum/forum-icons.png Binary file sites/all/themes/omega/images/modules/forum/forum-icons.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/modules/openid/login-bg.png Binary file sites/all/themes/omega/images/modules/openid/login-bg.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/0000001a-5.png Binary file sites/all/themes/omega/images/rgbapng/0000001a-5.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/0000001a.png Binary file sites/all/themes/omega/images/rgbapng/0000001a.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/000000bf-5.png Binary file sites/all/themes/omega/images/rgbapng/000000bf-5.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/000000bf.png Binary file sites/all/themes/omega/images/rgbapng/000000bf.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/077dc3bf-5.png Binary file sites/all/themes/omega/images/rgbapng/077dc3bf-5.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/images/rgbapng/077dc3bf.png Binary file sites/all/themes/omega/images/rgbapng/077dc3bf.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/assets/assets.extension.inc --- a/sites/all/themes/omega/includes/assets/assets.extension.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -name = Assets -description = There should be a description here. -enabled = TRUE diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/assets/assets.inc --- a/sites/all/themes/omega/includes/assets/assets.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ - $info) { - if (!empty($settings[$library]['status'])) { - $registry['html']['libraries'][$library] = array( - 'attached' => array(), - 'settings' => $settings[$library], - 'callbacks' => isset($info['callbacks']) ? array_unique($info['callbacks']) : FALSE, - ); - - if (isset($settings[$library]['variant']) && $variant = $settings[$library]['variant']) { - $registry['html']['libraries'][$library]['attached'] = $info['variants'][$variant]['files']; - } - else { - $registry['html']['libraries'][$library]['attached'] = $info['files']; - } - } - } - } - - if (!empty($registry['html']['libraries'])) { - $registry['html']['includes'][] = drupal_get_path('theme', 'omega') . '/includes/assets/assets.inc'; - $registry['html']['preprocess functions'][] = 'omega_extension_assets_attach_libraries'; - } -} - -/** - * Extension callback for attaching enabled libraries. - */ -function omega_extension_assets_attach_libraries(&$variables) { - $registry = theme_get_registry(); - - // Check if there are any enabled libraries. - $libraries = module_exists('devel_themer') ? $registry['html']['original']['libraries'] : $registry['html']['libraries']; - foreach ($libraries as $library => $info) { - drupal_process_attached(array('#attached' => $info['attached'])); - - if (!empty($info['callbacks'])) { - foreach ($info['callbacks'] as $callback) { - $callback($library, $info['settings']); - } - } - } -} - -/** - * Library callback for checking if CSS aggregation is enabled. - */ -function omega_extension_library_requirements_css_aggregation($library, $settings) { - if ((!variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update'))) { - if (user_access('administer site configuration') && flood_is_allowed('omega_' . $GLOBALS['theme'] . '_aggregation_required', 3, 3600, $library)) { - $libraries = omega_theme_libraries_info(); - $info = $libraries[$library]; - - // Tell the user that the library does not work without CSS aggregation. - flood_register_event('omega_' . $GLOBALS['theme'] . '_aggregation_required', 3600, $library); - drupal_set_message(t('The %library library requires aggregated CSS files to work properly. You can enable CSS aggregation in the performance settings.', array('!url' => url('admin/config/development/performance'), '%library' => $info['name'])), 'warning'); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/assets/assets.settings.inc --- a/sites/all/themes/omega/includes/assets/assets.settings.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,244 +0,0 @@ - 'textarea', - '#title' => t('Move JS files to the footer'), - '#description' => t("Enter one file per line. The '*' character is a wildcard. Each path is relative to a module, theme, profile, theme engine or the 'misc' folder."), - // The paths are stored in an array. - '#default_value' => implode("\n", (array) omega_theme_get_setting('omega_js_footer', array())), - ); - - $element['omega_css_exclude'] = array( - '#type' => 'textarea', - '#title' => t('Exclude CSS files'), - '#description' => t("Enter one file per line. The '*' character is a wildcard. Each path is relative to a module, theme, profile, theme engine or the 'misc' folder."), - // The paths are stored in an array. - '#default_value' => implode("\n", (array) omega_theme_get_setting('omega_css_exclude', array())), - ); - - $element['omega_js_exclude'] = array( - '#type' => 'textarea', - '#title' => t('Exclude JS files'), - '#description' => t("Enter one file per line. The '*' character is a wildcard. Each path is relative to a module, theme, profile, theme engine or the 'misc' folder."), - // The paths are stored in an array. - '#default_value' => implode("\n", (array) omega_theme_get_setting('omega_js_exclude', array())), - ); - - $element['omega_libraries'] = array( - '#type' => 'container', - '#tree' => TRUE, - ); - - $libraries = omega_theme_get_setting('omega_libraries', array()); - foreach (omega_theme_libraries_info() as $library => $info) { - $key = strtolower($info['package']); - if (!isset($element['omega_libraries'][$key])) { - $element['omega_libraries'][$key] = array( - '#type' => 'fieldset', - '#title' => t(filter_xss_admin(ucfirst($info['package']))), - ); - } - - $element['omega_libraries'][$key][$library]['status'] = array( - '#type' => 'checkbox', - '#title' => !isset($info['vendor']) ? $info['name'] : (isset($info['vendor url']) ? t('@library by @vendor', array('@library' => $info['name'], '!url' => $info['vendor url'], '@vendor' => $info['vendor'])) : t('@library by @vendor', array('@library' => $info['name'], '@vendor' => $info['vendor']))), - '#description' => $info['description'], - '#default_value' => !empty($libraries[$library]['status']), - '#parents' => array('omega_libraries', $library, 'status'), - ); - - if ($missing = omega_extension_assets_check_library($info)) { - foreach ($missing as &$file) { - $path = drupal_get_path('theme', $form_state['build_info']['args'][0]); - $file = strpos($file, $path) === 0 ? substr($file, strlen($path) + 1) : $file; - } - - $element['omega_libraries'][$key][$library]['missing'] = array( - '#theme' => 'item_list', - '#title' => t('Missing files'), - '#items' => $missing, - '#prefix' => '
', - '#suffix' => '
', - ); - } - - $options = array(); - // Some libraries might want to provide special options. - if (isset($info['options form']) && function_exists($info['options form'])) { - // If a library options form callback exists and actually returns some - // options for this library append conditionally show them underneath - // the library checkbox with #states. - $info['options form']($options, $form, $form_state, $library, $info); - } - - if (!empty($info['variants'])) { - $options['variant'] = array( - '#type' => 'radios', - '#title' => t('Variant'), - '#options' => array('_default' => t('Default')), - '#default_value' => !empty($libraries[$library]['variant']) ? $libraries[$library]['variant'] : '_default', - '#parents' => array('omega_libraries', $library, 'variant'), - '#weight' => -10, - ); - - $options['variant']['_default'] = array( - '#description' => t('The default variant generally is a minified version of the library and provides the optimal production solution in most cases.'), - ); - - foreach ($info['variants'] as $variant => $variant_info) { - $options['variant']['#options'][$variant] = $variant_info['name']; - - if (!empty($variant_info['description'])) { - $options['variant'][$variant] = array( - '#description' => $variant_info['description'], - ); - } - } - } - - if (!empty($options)) { - $element['omega_libraries'][$key][$library]['options'] = array( - '#type' => 'fieldset', - '#title' => t('Options'), - '#states' => array( - 'visible' => array( - ':input[name="omega_libraries[' . $library . '][status]"]' => array('checked' => TRUE), - ), - ), - '#parents' => array('omega_libraries', $library), - '#tree' => TRUE, - '#attributes' => array('class' => array('omega-settings-container')), - '#collapsible' => TRUE, - '#collapsed' => TRUE, - ) + $options; - } - } - - // We need a custom submit handler to store the CSS and JS paths as arrays. - $form['#submit'][] = 'omega_extension_assets_theme_settings_form_submit'; - - return $element; -} - -/** - * Theme settings form submit handler for handling the PIE selectors. - */ -function omega_library_pie_selectors_submit($form, &$form_state) { - $values = &$form_state['values']['omega_libraries']['css3pie']; - - // Generate a CSS file for the provided selectors if the inclusion method is - // set to 'pie.htc' or 'pie.php'. - $selectors = array(); - if (!empty($values['selectors'])) { - // Sanitize the selectors. - $selectors = array_map('trim', explode("\n", $values['selectors'])); - $selectors = array_unique($selectors); - } - - // Save the selectors as an array. - $parents = array('#parents' => array('omega_libraries', 'css3pie', 'selectors')); - form_set_value($parents, $selectors, $form_state); -} - -/** - * CSS3PIE Library options form callback. - */ -function omega_library_pie_options_form(&$element, &$form, $form_state, $library, $info) { - // Give the default variant a proper label. - $element['variant']['#options']['_default'] = t('HTML Component (default)'); - - // Pull the selectors from the theme settings. - $settings = omega_theme_get_setting('omega_libraries', array()); - - // The generated CSS file is stored in the public file system. - $theme = $form_state['build_info']['args'][0]; - $destination = file_create_url('public://omega/' . $theme); - - $element['selectors'] = array( - '#title' => t('Selectors'), - '#type' => 'textarea', - '#description' => t("You can use this textarea to define all the CSS rules that you want to apply the PIE behavior to. Define one CSS selector per line. The selectors submitted with this field get directly cached in a .css file (as well as a .js file) in the public file system. This file is then included on page load and triggers CSS3PIE.", array('!css' => $destination . '/pie-selectors.css', '!js' => $destination . '/pie-selectors.js')), - '#default_value' => !empty($settings['css3pie']['selectors']) ? implode("\n", $settings['css3pie']['selectors']) : '', - ); - - // We need to provide a submit handler to create a CSS file for the - // defined selectors and remove them from the theme settings array. - $form['#submit'][] = 'omega_library_pie_selectors_submit'; -} - -/** - * Form submit handler for the css theme settings extension. - */ -function omega_extension_assets_theme_settings_form_submit($form, &$form_state) { - $values = $form_state['values']; - - // Explode and trim the values for the exclusion rules. - foreach (array('omega_css_exclude', 'omega_js_exclude', 'omega_js_footer') as $item) { - $exclude = array_filter(array_map('trim', explode("\n", $values[$item]))); - form_set_value(array('#parents' => array($item)), $exclude, $form_state); - } - - // Cache the regex for the CSS and JS excludes (if any). - foreach (array('omega_css_exclude', 'omega_js_exclude') as $item) { - if ($value = $form_state['values'][$item]) { - $exclude = omega_generate_path_regex($value); - form_set_value(array('#parents' => array($item . '_regex')), $exclude, $form_state); - } - } - - if (!empty($form_state['values']['omega_libraries'])) { - $values = &$form_state['values']['omega_libraries']; - - foreach ($values as &$settings) { - if (isset($settings['variant']) && $settings['variant'] == '_default') { - // Unset the 'variant' option if it is the default option. - unset($settings['variant']); - } - } - } -} - -/** - * Checks a library for missing files. - * - * @param $info - * A library info array. - * - * @return array - * An array of missing files. - */ -function omega_extension_assets_check_library($info) { - $missing = array(); - foreach (array_filter($info['files']) as $files) { - foreach ($files as $file => $data) { - $file = is_array($data) ? $file : $data; - if (!is_file($file)) { - $missing[$file] = $file; - } - } - } - - if (!empty($info['variants'])) { - foreach ($info['variants'] as $variant) { - foreach (array_filter($variant['files']) as $files) { - foreach ($files as $file => $data) { - $file = is_array($data) ? $file : $data; - if (!is_file($file)) { - $missing[$file] = $file; - } - } - } - } - } - - return $missing; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/compatibility/compatibility.extension.inc --- a/sites/all/themes/omega/includes/compatibility/compatibility.extension.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -name = Compatibility -description = There should be a description here. -enabled = TRUE diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/compatibility/compatibility.inc --- a/sites/all/themes/omega/includes/compatibility/compatibility.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,179 +0,0 @@ - $name) { - $path = drupal_get_path('theme', $theme); - - // Apple touch icons have to be in the root directory of the theme for - // them to be discoverable. - if ($files = file_scan_directory($path, $mask, array('recurse' => FALSE))) { - foreach ($files as $file) { - $matches = array(); - - // Run the filename through the regex once more picking up the - // sub-matches in order to find out the dimensions of the touch icon - // and whether it's preprocessed or not. - preg_match($mask, $file->filename, $matches); - - // Cache the array of apple touch icons. - $registry['html']['apple-touch-icon'][$file->uri] = array( - 'uri' => $file->uri, - 'precomposed' => !empty($matches[1]), - 'sizes' => !empty($matches[3]) ? $matches[3] : FALSE, - ); - } - - // Break out of the loop because we found at least one touch icon. - break; - } - } - } -} - -/** - * Implements hook_extension_EXTENSION_preproces_html(). - */ -function omega_extension_compatibility_preprocess_html(&$variables) { - // Add the 'HandheldFriendly' meta tag. - if (omega_theme_get_setting('omega_handheld_friendly', TRUE)) { - $meta = array( - '#tag' => 'meta', - '#attributes' => array('name' => 'HandheldFriendly', 'content' => 'true'), - ); - - drupal_add_html_head($meta, 'omega-handheld-friendly'); - } - - // Add a the 'MobileOptimized' meta tag. - if (omega_theme_get_setting('omega_mobile_optimized', TRUE)) { - $meta = array( - '#tag' => 'meta', - '#attributes' => array('name' => 'MobileOptimized', 'content' => 'width'), - ); - - drupal_add_html_head($meta, 'omega-mobile-optimized'); - } - - // Add the 'cleartype' meta tag. - if (omega_theme_get_setting('omega_cleartype', TRUE)) { - $meta = array( - '#tag' => 'meta', - '#attributes' => array('http-equiv' => 'cleartype', 'content' => 'on'), - ); - - drupal_add_html_head($meta, 'omega-cleartype'); - } - - // Add the 'viewport' meta tag. - if (omega_theme_get_setting('omega_viewport', TRUE)) { - $content = array('width=device-width'); - - // Add the 'initial-scale' property if configured. - if ($value = omega_theme_get_setting('omega_viewport_initial_scale')) { - $content[] = "initial-scale=$value"; - } - - // The minimum-scale and maximum-scale properties are ignored if - // user-scalable is set to 'no'. - if (omega_theme_get_setting('omega_viewport_user_scaleable', TRUE) === FALSE) { - $content[] = 'user-scalable=no'; - } - else { - // Set the minimum-scale and maximum-scale properties if specified. - foreach (array('minimum', 'maximum') as $type) { - if ($value = omega_theme_get_setting("omega_viewport_{$type}_scale")) { - $content[] = "$type-scale=$value"; - } - } - } - - $meta = array( - '#tag' => 'meta', - '#attributes' => array('name' => 'viewport', 'content' => implode(', ', $content)), - // The 'viewport' metatag should be rendered after the 'HandheldFriendly' - // metatag. - '#weight' => 10, - ); - - drupal_add_html_head($meta, 'omega-viewport'); - } - - // Add Apple touch icons. - if (omega_theme_get_setting('omega_apple_touch', TRUE)) { - $registry = theme_get_registry(FALSE); - - if (!empty($registry['html']['apple-touch-icon'])) { - // Iterate over the array of touch icons and attributes. - foreach($registry['html']['apple-touch-icon'] as $icon) { - $meta = array( - '#tag' => 'link', - '#attributes' => array( - 'rel' => 'apple-touch-icon' . (!empty($icon['precomposed']) ? '-precomposed' : ''), - 'href' => file_create_url($icon['uri']), - ), - ); - - if (!empty($icon['sizes'])) { - $meta['#attributes']['sizes'] = $icon['sizes']; - } - - // Add the touch icon to the head using a unique key. - $key = 'omega-touch-' . (!empty($icon['precomposed']) ? '-precomposed' : '') . (!empty($icon['sizes']) ? '-' . $icon['uri'] : ''); - drupal_add_html_head($meta, $key); - } - } - } - - // Send X-UA-Compatible HTTP header to force IE to use the most recent - // rendering engine or use Chrome's frame rendering engine if available. - if (omega_theme_get_setting('omega_chrome_edge', TRUE)) { - $supported = omega_theme_get_setting('omega_internet_explorer_support', FALSE); - - if (drupal_get_http_header('X-UA-Compatible') === NULL) { - // Only add the header if it hasn't been added before. - drupal_add_http_header('X-UA-Compatible', 'IE=edge,chrome=' . ($supported ? 'IE' . $supported : '1')); - } - - if (omega_theme_get_setting('omega_chrome_popup', FALSE)) { - // Automatically open the Google Chrome Frame installation iframe. - drupal_add_js('//ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js', array( - 'type' => 'external', - 'scope' => 'footer', - 'weight' => 1000, - 'browsers' => array( - 'IE' => !$supported ? TRUE : 'lte IE ' . $supported, - '!IE' => FALSE, - ), - )); - - drupal_add_js('window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"});})', array( - 'type' => 'inline', - 'scope' => 'footer', - 'weight' => 1000, - 'browsers' => array( - 'IE' => !$supported ? TRUE : 'lte IE ' . $supported, - '!IE' => FALSE, - ), - )); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/compatibility/compatibility.settings.inc --- a/sites/all/themes/omega/includes/compatibility/compatibility.settings.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,178 +0,0 @@ - 'checkbox', - '#title' => t('Add conditional classes for Internet Explorer'), - '#description' => t('Adds conditional classes (for Internet Explorer) to the <html>.'), - '#default_value' => omega_theme_get_setting('omega_conditional_classes_html', TRUE), - ); - - $element['omega_metatags'] = array( - '#type' => 'fieldset', - '#title' => t('Metatags and HTTP headers'), - ); - - $element['omega_metatags']['omega_apple_touch'] = array( - '#type' => 'checkbox', - '#title' => t('Apple touch icons'), - '#description' => t('You can set an Apple Touch Icon for your website just like you can set a favorite icon.'), - '#default_value' => omega_theme_get_setting('omega_apple_touch', TRUE), - ); - - $element['omega_metatags']['omega_cleartype'] = array( - '#type' => 'checkbox', - '#title' => t('Cleartype support for Windows'), - '#description' => t('Mobile Internet Explorer allows us to activate ClearType technology for smoothing fonts for easy reading.'), - '#default_value' => omega_theme_get_setting('omega_cleartype', TRUE), - ); - - $element['omega_metatags']['omega_handheld_friendly'] = array( - '#type' => 'checkbox', - '#title' => t('Handheld friendly'), - '#description' => t('The HandheldFriendly meta-tag was used initially by older Palm and Blackberry models as well as browsers like AvantGo.'), - '#default_value' => omega_theme_get_setting('omega_handheld_friendly', TRUE), - ); - - $element['omega_metatags']['omega_mobile_optimized'] = array( - '#type' => 'checkbox', - '#title' => t('Mobile Optimized'), - '#description' => t('Microsoft introduced the MobileOptimized tag for the PocketPC.'), - '#default_value' => omega_theme_get_setting('omega_mobile_optimized', TRUE), - ); - - $element['omega_metatags']['omega_viewport'] = array( - '#type' => 'checkbox', - '#title' => t('Viewport'), - '#description' => t('This is more widely supported by modern smartphones, including but not limited to: iOS, Android, Palm Pre, Blackberry, Windows Phone 7.'), - '#default_value' => omega_theme_get_setting('omega_viewport', TRUE), - ); - - $element['omega_metatags']['viewport_settings'] = array( - '#type' => 'fieldset', - '#title' => t('Viewport settings'), - '#states' => array( - 'visible' => array( - ':input[name="omega_viewport"]' => array('checked' => TRUE), - ), - ), - ); - - $options = array('_none' => t('Default')); - foreach (range(0.1, 10, 0.1) as $value) { - // Format the value to display with one decimal. - $value = number_format($value, 1); - $options[(string) $value] = $value; - } - - $element['omega_metatags']['viewport_settings']['omega_viewport_initial_scale'] = array( - '#type' => 'select', - '#title' => t('Initial scale'), - '#default_value' => omega_theme_get_setting('omega_viewport_initial_scale', '_none'), - '#options' => $options, - '#description' => t('The initial scaling of the page. Has to be in the range of the minimum- and maximum scale options.'), - ); - - $element['omega_metatags']['viewport_settings']['omega_viewport_user_scaleable'] = array( - '#type' => 'checkbox', - '#title' => t('User scalable'), - '#default_value' => omega_theme_get_setting('omega_viewport_user_scaleable', TRUE), - '#description' => t("Whether users are allowed to zoom in and out. Defaults to 'yes'. This is usually accomplished via multi-touch gestures on iOS and Android devices. You should only disallow zooming (uncheck this checkbox) if your mobile theme is very customized and presented with good typography and graphics for a reduced mobile size."), - ); - - $element['omega_metatags']['viewport_settings']['scaling_settings'] = array( - '#type' => 'fieldset', - '#title' => t('Scaling settings'), - '#states' => array( - 'visible' => array( - ':input[name="omega_viewport_user_scaleable"]' => array('checked' => TRUE), - ), - ), - ); - - $element['omega_metatags']['viewport_settings']['scaling_settings']['omega_viewport_minimum_scale'] = array( - '#type' => 'select', - '#title' => t('Minimum scale'), - '#default_value' => omega_theme_get_setting('omega_viewport_minimum_scale', '_none'), - '#options' => $options, - '#description' => t('The minimum allowed scaling of the site.'), - ); - - $element['omega_metatags']['viewport_settings']['scaling_settings']['omega_viewport_maximum_scale'] = array( - '#type' => 'select', - '#title' => t('Maximum scale'), - '#default_value' => omega_theme_get_setting('omega_viewport_maximum_scale', '_none'), - '#options' => $options, - '#description' => t('The maximum allowed scaling of the site.'), - ); - - $element['omega_metatags']['omega_chrome_edge'] = array( - '#type' => 'checkbox', - '#title' => t('Enable Chrome Frame and Internet Explorer Edge support'), - '#description' => t('Google\'s Chrome Frame is an open source project for Internet Explorer 6, 7, 8, and 9 that allows those version of Internet Explorer to harness the power of Google Chrome\'s engine. Edge mode tells Internet Explorer to display content in the highest mode available. With Internet Explorer 9, this is equivalent to IE9 mode. If a (hypothetical) future release of Internet Explorer supported a higher compatibility mode, pages set to edge mode would appear in the highest mode supported by that version. Those same pages would still appear in IE9 mode when viewed with Internet Explorer 9.', array('!link' => 'https://www.youtube.com/watch?v=sjW0Bchdj-w&feature=player_embedded"')), - '#default_value' => omega_theme_get_setting('omega_chrome_edge', TRUE), - ); - - $element['omega_metatags']['chrome'] = array( - '#type' => 'fieldset', - '#title' => t('Google Chrome Frame settings'), - '#states' => array( - 'visible' => array( - 'input[name="omega_chrome_edge"]' => array('checked' => TRUE), - ), - ), - ); - - $element['omega_metatags']['chrome']['omega_internet_explorer_support'] = array( - '#type' => 'select', - '#title' => t('Minimum supported Internet Explorer version'), - '#description' => t('The minimum version number of Internet Explorer that you actively support. The Chrome Frame prompt will display for any version below this version number.'), - '#default_value' => omega_theme_get_setting('omega_internet_explorer_support'), - '#options' => array( - '_none' => t('No Internet Explorer support'), - '9' => t('Internet Explorer 10'), - '8' => t('Internet Explorer 9'), - '7' => t('Internet Explorer 8'), - '6' => t('Internet Explorer 7'), - ), - ); - - $element['omega_metatags']['chrome']['omega_chrome_popup'] = array( - '#type' => 'checkbox', - '#title' => t('Enable the Google Chrome Frame popup'), - '#description' => t('Opens a popup window upon page load through which users can install Google Chrome Frame.'), - '#default_value' => omega_theme_get_setting('omega_chrome_popup', FALSE), - ); - - $element['omega_metatags']['chrome']['omega_chrome_notice'] = array( - '#type' => 'checkbox', - '#title' => t('Display a warning for users that do not have Google Chrome Frame installed'), - '#description' => t('Renders a themeable message at the top of the page if a user does not have Google Chrome Frame installed.'), - '#default_value' => omega_theme_get_setting('omega_chrome_notice', FALSE), - ); - - $form['#submit'][] = 'omega_extension_compatibility_settings_form_submit'; - - return $element; -} - -/** - * Form submit callback for the compatibility extension. - */ -function omega_extension_compatibility_settings_form_submit($form, &$form_state) { - $values = &$form_state['values']; - - foreach (array('omega_internet_explorer_support', 'omega_viewport_initial_scale', 'omega_viewport_minimum_scale', 'omega_viewport_maximum_scale') as $item) { - if ($values[$item] === '_none') { - unset($values[$item]); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/development/development.extension.inc --- a/sites/all/themes/omega/includes/development/development.extension.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -name = Development -description = There should be a description here. -enabled = TRUE diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/development/development.inc --- a/sites/all/themes/omega/includes/development/development.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ - FALSE, - 'type' => 'external', - 'browsers' => array( - 'IE' => FALSE, - '!IE' => TRUE, - ), - )); - } - - if (omega_theme_get_setting('omega_browser_width_indicator', FALSE) || omega_theme_get_setting('omega_demo_regions', TRUE)) { - drupal_add_css($path . '/css/omega.development.css', array('group' => CSS_THEME, 'weight' => -10, 'every_page' => TRUE)); - - if (omega_theme_get_setting('omega_browser_width_indicator', FALSE)) { - if (!module_exists('overlay') || (!$mode = overlay_get_mode()) || $mode == 'parent') { - $variables['attributes_array']['class'][] = 'omega-browser-width-indicator'; - drupal_add_js($path . '/js/omega.indicator.min.js', array('group' => JS_THEME, 'weight' => -10, 'every_page' => TRUE)); - } - } - } -} - -/** - * Implements hook_extension_EXTENSION_preproces_region(). - */ -function omega_extension_development_preprocess_region(&$variables) { - if ($variables['debug'] = !empty($variables['elements']['#debug'])) { - $class = drupal_html_class('region--debug--' . $variables['region']); - drupal_add_css(".$class:before { content: \"{$variables['elements']['#name']}\"; }", array( - 'type' => 'inline', - 'group' => CSS_THEME, - 'weight' => 1000, - )); - - $variables['attributes_array']['class'][] = 'region--debug'; - $variables['attributes_array']['class'][] = $class; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/development/development.settings.inc --- a/sites/all/themes/omega/includes/development/development.settings.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,126 +0,0 @@ - 'checkbox', - '#title' => t('Rebuild the theme registry on every page load'), - '#description' => t('While creating new templates and theme overrides the theme registry needs to be rebuilt. Note: This has a high (negative) performance impact and has to be deactivated once your website goes into production.'), - '#default_value' => omega_theme_get_setting('omega_rebuild_theme_registry', FALSE), - ); - - $element['omega_rebuild_aggregates'] = array( - '#type' => 'checkbox', - '#title' => t('Rebuild CSS and JS aggregates on every page load'), - '#description' => t('This can be useful for debugging your CSS or JS with activated aggregation. Note: This has a high (negative) performance impact and has to be deactivated once your website goes into production.'), - '#default_value' => omega_theme_get_setting('omega_rebuild_aggregates', FALSE), - ); - - $element['omega_browser_width_indicator'] = array( - '#type' => 'checkbox', - '#title' => t('Browser width indicator'), - '#description' => t('Adds a small box at the bottom of the browser window that displays the current width of the browser window. This can be very useful when writing media queries for a responsive website.'), - '#default_value' => omega_theme_get_setting('omega_browser_width_indicator', FALSE), - ); - - $element['omega_livereload'] = array( - '#type' => 'checkbox', - '#title' => t('Enable LiveReload'), - '#description' => t('LiveReload monitors changes in the file system. As soon as you save a file, it is preprocessed as needed, - and the browser is refreshed. Even cooler, when you change a CSS file or an image, the browser is updated instantly without - reloading the page. After enabling this features livereload.js will - be added to your pages which will then communicate with your LiveReload server.'), - '#default_value' => omega_theme_get_setting('omega_livereload', TRUE), - ); - - $element['omega_livereload_settings'] = array( - '#type' => 'fieldset', - '#title' => t('LiveReload settings'), - '#collapsible' => TRUE, - '#collapsed' => TRUE, - '#states' => array( - 'visible' => array( - 'input[name="omega_livereload"]' => array('checked' => TRUE), - ), - ), - ); - - $host = omega_theme_get_setting('omega_livereload_host', 'localhost'); - $port = omega_theme_get_setting('omega_livereload_port', '35729'); - $element['omega_livereload_settings']['omega_livereload_script'] = array( - '#type' => 'textfield', - '#title' => t('Script URL'), - '#description' => t("The URL from which to load the script. When running LiveReload through Guard or Grunt the - script can be retrieved from wherever Guard or Grunt are running."), - '#default_value' => omega_theme_get_setting('omega_livereload_script', "http://$host:$port/livereload.js"), - '#size' => 10, - ); - - $element['omega_livereload_settings']['omega_livereload_host'] = array( - '#type' => 'textfield', - '#title' => t('Host'), - '#description' => t("The host at which the LiveReload server is running. Do not add any protocol prefixes (e.g. 'http://')."), - '#default_value' => $host, - '#size' => 30, - ); - - $element['omega_livereload_settings']['omega_livereload_port'] = array( - '#type' => 'textfield', - '#title' => t('Port'), - '#description' => t('The port through which the LiveReload server can be reached. By default livereload.js tries to connect - to port 35729 which is also the default for LiveReload server. Therefore, please only specify a custom port if the - LiveReload server is running on a different port.'), - '#default_value' => $port, - '#size' => 10, - ); - - $regions = system_region_list($GLOBALS['theme_key'], REGIONS_VISIBLE); - $regions = module_exists('dashboard') ? array_diff_key($regions, array_flip(dashboard_regions())) : $regions; - if ($regions) { - $element['omega_demo_regions'] = array( - '#type' => 'checkbox', - '#title' => t('Region demo mode'), - '#description' => t('Forces all regions to be rendered, regardless of whether they are empty or not places a label with their name on them.'), - '#default_value' => omega_theme_get_setting('omega_demo_regions', TRUE), - ); - - $element['omega_demo_regions_list'] = array( - '#type' => 'fieldset', - '#title' => t('Select demo regions'), - '#collapsible' => TRUE, - '#collapsed' => TRUE, - '#states' => array( - 'visible' => array( - 'input[name="omega_demo_regions"]' => array('checked' => TRUE), - ), - ), - ); - - $element['omega_demo_regions_list']['omega_demo_regions_list'] = array( - '#type' => 'checkboxes', - '#title' => t('Demo regions'), - '#options' => $regions, - '#default_value' => omega_theme_get_setting('omega_demo_regions_list', array_keys($regions)), - ); - } - - $form['#submit'][] = 'omega_extension_development_settings_form_submit'; - - return $element; -} - -/** - * Form submit handler for the theme settings form to clean up stale values. - */ -function omega_extension_development_settings_form_submit($form, &$form_state) { - if (empty($form_state['values']['omega_demo_regions'])) { - unset($form_state['values']['omega_demo_regions_list']); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/layouts/layouts.extension.inc --- a/sites/all/themes/omega/includes/layouts/layouts.extension.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -name = Layouts -description = There should be a description here. -enabled = TRUE diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/layouts/layouts.inc --- a/sites/all/themes/omega/includes/layouts/layouts.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - 'radios', - '#options' => array(), - '#title' => t('Choose a layout'), - '#default_value' => omega_theme_get_setting('omega_layout', 'simple'), - ); - - foreach ($layouts as $layout => $info) { - $element['omega_layout']['#options'][$layout] = $info['info']['name']; - $element['omega_layout'][$layout]['#description'] = $info['info']['description']; - - if (isset($info['info']['preview'])) { - $icon = file_create_url($info['path'] . '/' . $info['info']['preview']); - $element['omega_layout'][$layout]['#prefix'] = '
'; - $element['omega_layout'][$layout]['#suffix'] = '
'; - } - } - } - - return $element; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/omega.drush.inc --- a/sites/all/themes/omega/includes/omega.drush.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,979 +0,0 @@ - dt('Creates a Omega subtheme.'), - 'arguments' => array( - 'name' => dt('The name of your subtheme.'), - ), - 'options' => array( - 'destination' => dt('The destination of your subtheme. Defaults to "site:all" (sites/all/themes). May be one of "site:foo", "profile:bar" or "theme:baz" ("foo", "bar" and "baz" being the name of your site, profile or parent theme). May also have a third part for sub-pathing. For example, if using site:all:custom/cat, then the theme will be created in sites/all/themes/custom/cat/.'), - 'machine-name' => dt('The machine-readable name of your subtheme. This will be auto-generated from the human-readable name if omitted.'), - 'starterkit' => dt('The starterkit that your subtheme should use. Defaults to "default".'), - 'basetheme' => dt('Specifies a custom base theme. Defaults to "omega".'), - 'enable' => dt('Automatically enable the subtheme after creation.'), - 'set-default' => dt('Automatically enable the subtheme after creation and make it the default theme.'), - 'no-readme' => dt('Skips readme files when generating the subtheme.'), - 'no-libraries' => dt("Prevent execution of the theme's libraries.make file.") - ), - 'examples' => array( - 'drush omega-subtheme "My Theme"' => dt('Creates an Omega subtheme called "My Theme".'), - 'drush omega-subtheme "My Theme" --destination=site:example.com' => dt('Creates an Omega subtheme called "My Theme" in sites/example.com/themes.'), - 'drush omega-subtheme "My Theme" --basetheme=my_custom_basetheme' => dt('Uses the default starterkit from a custom basetheme to create an Omega subtheme called "My Theme" in sites/all/themes.'), - 'drush omega-subtheme "My Theme" --basetheme=my_custom_basetheme --starterkit=my_custom_starterkit' => dt('Uses the my_custom_starterkit from a custom basetheme to create an Omega subtheme called "My Theme" in sites/all/themes.'), - ), - 'aliases' => array('osub'), - ); - - $items['omega-wizard'] = array( - 'description' => dt('Guides you through a wizard for generating a subtheme.'), - 'aliases' => array('owiz'), - ); - - $items['omega-guard'] = array( - 'description' => dt('Runs guard for the given theme including Compass and LiveReload by default.'), - 'arguments' => array( - 'name' => dt('The name of your subtheme.'), - ), - 'options' => array( - 'screen' => dt('Run guard watch in a detached screen.'), - 'force-polling' => dt('Polling is required for making guard watch work with remote file systems e.g. in case of virtual environments where guard runs on the guest but the files are modified on the host.'), - 'latency' => dt("Sometimes it seems to be required to set a latency (e.g. 5) if working with --force-polling because otherwise file changes are detected twice. Hence, not setting a latency might affect your system performance."), - ), - 'aliases' => array('ogrd'), - ); - - $items['omega-export'] = array( - 'description' => dt('Exports the theme settings of a given theme from the database to the .info file.'), - 'arguments' => array( - 'theme' => dt('The machine-readable name of the theme to export the theme settings for.'), - ), - 'options' => array( - 'revert' => dt('Purges the theme settings from the database after exporting them to the .info file.'), - ), - 'examples' => array( - 'drush omega-export foo' => dt('Exports the theme settings of the "foo" theme to the "foo.info" file in that theme.'), - 'drush omega-export foo --revert' => dt('Purges the theme settings of the "foo" theme from the database after exporting them to the .info file.'), - ), - 'aliases' => array('oexp'), - ); - - $items['omega-revert'] = array( - 'description' => dt('Reverts the theme settings of a given theme by deleting them from the database.'), - 'arguments' => array( - 'theme' => dt('The machine-readable name of the theme to revert the theme settings for.'), - ), - 'options' => array( - 'all' => dt('Reverts the theme settings of all Omega sub-themes.'), - ), - 'examples' => array( - 'drush omega-revert foo' => dt('Reverts the theme settings of the "foo" theme.'), - ), - 'aliases' => array('orev'), - ); - - return $items; -} - -/** - * Implements hook_drush_help(). - */ -function omega_drush_help($section) { - switch ($section) { - case 'drush:omega-subtheme': - return dt('Generates a subtheme.'); - case 'drush:omega-wizard': - return dt('Guides you through a wizard for generating a subtheme.'); - case 'drush:omega-guard': - return dt('Runs guard for the given theme including Compass and LiveReload by default.'); - case 'drush:omega-export': - return dt('Exports the theme settings of a given theme.'); - case 'drush:omega-revert': - return dt('Reverts the theme settings of a given theme.'); - } -} - -/** - * Implements drush_hook_COMMAND_validate(). - */ -function drush_omega_subtheme_validate($name = NULL) { - if (!isset($name)) { - return drush_set_error('OMEGA_MISSING_ARGUMENT', dt("You didn't specify a name for the subtheme.")); - } - - // Rebuild the theme data so that we can safely check for the existence of - // themes by using the information provided by list_themes(). - system_rebuild_theme_data(); - - if ($machine_name = drush_get_option('machine-name')) { - // Validate the machine-readable name of the theme. - if (!is_string($machine_name)) { - return drush_set_error('OMEGA_THEME_NAME_INVALID', dt('The --machine-name option expects a string value.')); - } - - if (!preg_match('/^[a-z][a-z0-9_]*$/', $machine_name)) { - return drush_set_error('OMEGA_THEME_NAME_INVALID', dt('The machine name (@name) is invalid. It may only contain lowercase numbers, letters and underscores and must start with a letter.', array( - '@name' => $machine_name, - ))); - } - - $themes = list_themes(); - // Validate that the machine-readable name of the theme is unique. - if (isset($themes[$machine_name])) { - return drush_set_error('OMEGA_THEME_ALREADY_EXISTS', dt('A theme with the name @name already exists. The machine-readable name must be unique.', array( - '@name' => $machine_name, - ))); - } - } - - if ($destination = drush_get_option('destination')) { - // Check if the syntax of the destination is valid. - if (!is_string($destination) || !preg_match('/^(site|theme|profile)(:(.+?)){1,2}$/', $destination)) { - return drush_set_error('OMEGA_DESTINATION_INVALID', dt('The destination syntax (@destination) is invalid. Please use one of the following destination patterns (site, profile or theme): --destination="site:foo", --destination="profile:bar" or --destination="theme:baz".', array( - '@destination' => $destination, - ))); - } - - // Check if the provided destination exists. - if (!drush_omega_resolve_destination($destination)) { - list($type, $destination) = explode(':', $destination); - - return drush_set_error('OMEGA_DESTINATION_DOES_NOT_EXIST', dt('The given destination @destination of type @type does not exist. Did you misspell it?', array( - '@destination' => $destination, - '@type' => $type, - ))); - } - } - - if ($basetheme = drush_get_option('basetheme')) { - if (!is_string($basetheme)) { - return drush_set_error('OMEGA_BASETHEME_INVALID', dt('The --basetheme option expects a string value.')); - } - - // Check if the base theme exists. - if (!array_key_exists($basetheme, list_themes())) { - return drush_set_error('OMEGA_BASETHEME_DOES_NOT_EXIST', dt('The base theme @basetheme does not exist or is invalid.', array( - '@basetheme' => $basetheme, - ))); - } - - // Check if the base theme is an Omega theme. - if (!array_key_exists('omega', omega_theme_trail($basetheme))) { - return drush_set_error('OMEGA_BASETHEME_INVALID', dt('The base theme @basetheme does not exist or is invalid.', array( - '@basetheme' => $basetheme, - ))); - } - } - - if ($starterkit = drush_get_option('starterkit')) { - if (!is_string($starterkit)) { - return drush_set_error('OMEGA_STARTERKIT_INVALID', dt('The --starterkit option expects a string value.')); - } - - $basetheme = drush_get_option('basetheme', 'omega'); - - // Check if the starterkit exists. - if (!array_key_exists($starterkit, omega_discovery('starterkit', $basetheme))) { - $themes = list_themes(); - - return drush_set_error('OMEGA_STARTERKIT_DOES_NOT_EXIST', dt('There is no valid @basetheme theme starterkit with the name @starterkit. Did you forget to specify the correct basetheme?', array( - '@basetheme' => $themes[$basetheme]->info['name'], - '@starterkit' => $starterkit, - ))); - } - } -} - -/** - * Implements drush_hook_COMMAND(). - */ -function drush_omega_subtheme($name) { - // Try to generate a machine-readable name. If that fails, prompt for one. - if (!$machine_name = drush_get_option('machine-name', drush_omega_generate_theme_name($name))) { - drush_print(dt("Sorry, I couldn't generate a machine-readable name for @name. Please use the '--machine-name' option to specify it manually.", array( - '@name' => $name, - ))); - } - - $basetheme = drush_get_option('basetheme', 'omega'); - $starterkits = omega_discovery('starterkit', $basetheme); - $starterkit = drush_get_option('starterkit', 'default'); - $starterkit = $starterkits[$starterkit]; - - // Check whether the destination path does not exist and bail out if it does - // so we don't delete any important data by accident. - $destination = drush_omega_resolve_destination(drush_get_option('destination', 'site:all')) . '/' . $machine_name; - if (file_exists($destination)) { - return drush_set_error('OMEGA_SUBTHEME_PATH', dt('The path @path already exists.', array('@path' => $destination))); - } - - // Create a temporary directory so we don't leave any stale files if an - // operation fails. - $temporary = drush_tempdir() . '/' . $name; - - // Try to copy the starterkit to the destination path of the new subtheme. - if (!drush_copy_dir($starterkit['path'], $temporary)) { - return drush_set_error('OMEGA_GENERATE_SUBTHEME', dt('Failed to generate subtheme.')); - } - - // Delete the .starterkit.inc file. - drush_delete_dir($temporary . '/' . basename($starterkit['file'])); - - // Put the name and description for the new subtheme in place. - $info = array( - 'name' => $name, - 'description' => 'Please provide a description for your theme.', - 'base theme' => $basetheme, - ) + $starterkit['info']; - - // Write to the new .info file. - $file = $temporary . '/' . $machine_name . '.info'; - if (!file_put_contents($file, drush_omega_compose_info_file($info))) { - return drush_set_error('OMEGA_GENERATE_SUBTHEME', dt('Failed to generate subtheme.')); - } - - // Optionally remove README.txt files. - if (drush_get_option('no-readme')) { - foreach (file_scan_directory($temporary, '/^README/') as $file) { - drush_delete_dir($file->uri); - } - } - - // Recursively rewrite the file names and contents of all the files that are - // now in the subtheme's directory to represent the human- and - // machine-readable names of the subtheme. - $search = array('/{{ THEME }}/', '/{{ THEMENAME }}/'); - $replace = array($machine_name, $name); - if (!drush_omega_rewrite_recursive($temporary, $search, $replace)) { - return drush_set_error('OMEGA_GENERATE_SUBTHEME', dt('Failed to generate subtheme.')); - } - - // Move the new subtheme to its destination. - if (!drush_op('drush_mkdir', dirname($destination)) || !drush_op('drush_move_dir', $temporary, $destination)) { - return drush_set_error('OMEGA_GENERATE_SUBTHEME', dt('Failed to generate subtheme.')); - } - - // Rebuild the theme caches so that we can do some final tasks. - drupal_theme_rebuild(); - system_rebuild_theme_data(); - - if (($default = drush_get_option('set-default')) || !drush_get_option('enable')) { - // Enable the subtheme. - drush_op('theme_enable', array($machine_name)); - - if ($default) { - // Make the newly created subtheme the default theme. - drush_op('variable_set', 'theme_default', $machine_name); - } - } - - // Execute the theme's libraries.make file unless disabled. - if (!drush_get_option('no-libraries') && is_file("$destination/libraries.make")) { - drush_op('chdir', $destination); - drush_invoke_process('@self', 'make', array('libraries.make'), array( - 'no-core' => TRUE, - 'contrib-destination' => '.', - 'yes' => TRUE, - )); - } - - drush_log(dt('You have successfully created the theme @theme (@name) in @path.', array( - '@theme' => $name, - '@name' => $machine_name, - '@path' => dirname($destination), - )), 'success'); -} - -/** - * Implements drush_hook_COMMAND(). - */ -function drush_omega_wizard() { - // Rebuild the theme data so that we can safely check for the existence of - // themes by using the information provided by list_themes(). - system_rebuild_theme_data(); - - // Prompt for a theme name. - $name = drush_prompt(dt('Please enter the name of the new sub-theme'), 'Omega Subtheme'); - - // Try to generate a machine-readable name. If that fails, prompt for one. - if (!$machine_name = drush_omega_generate_theme_name($name)) { - drush_print(dt("Sorry, I couldn't generate a machine-readable name for @name", array( - '@name' => $name, - ))); - } - // Prompt for a theme name using the automatically generated default if any. - drush_set_option('machine-name', drush_omega_require_valid_theme_name(dt('Please enter a machine-readable name for your new theme'), $machine_name)); - - // Prompt for a base theme. - if (!$basetheme = drush_omega_theme_choice(dt('Please choose a base theme for your new theme'))) { - return; - } - drush_set_option('basetheme', $basetheme); - - // Let the user choose a starterkit. - if (!$starterkit = drush_omega_starterkit_choice($basetheme, dt('Please choose a starterkit for your new theme'))) { - return; - } - drush_set_option('starterkit', $starterkit); - - // Let the user choose a destination. - if (!$destination = drush_omega_destination_choice(dt('Please choose a destination. This is where your sub-theme will be placed'))) { - return; - } - drush_set_option('destination', $destination); - - // Optionally skip readme files when generating the subtheme. - drush_set_option('no-readme', !drush_confirm(dt("Do you want to keep the starterkit's readme files?"))); - - // Finally, let the user choose to directly enable the subtheme. - if ($enable = drush_confirm(dt('Do you want to enable your new theme?'))) { - drush_set_option('set-default', drush_confirm(dt('Do you want to make your new theme the default theme?'))); - } - drush_set_option('enable', $enable); - - drush_invoke('omega-subtheme', $name); -} - -/** - * Implements drush_hook_COMMAND_validate(). - */ -function drush_omega_export_validate($theme = NULL) { - return drush_omega_validate_theme($theme); -} - -/** - * Implements drush_hook_COMMAND(). - * - * Exports the theme settings for the given theme from the database and writes - * them into the .info file of that theme. - * - * @param $theme - * (optional) The machine-readable name of a theme. - * @return bool - * TRUE on success, FALSE on failure. - */ -function drush_omega_export($theme = NULL) { - if (!isset($theme) && !$theme = drush_omega_theme_choice(dt('Which theme do you want to export the theme settings for?'))) { - return; - } - - $themes = list_themes(); - - // Insert the theme settings from the database. - if (!$settings = variable_get('theme_' . $theme . '_settings')) { - if (!drush_confirm(dt('There are no theme settings for @theme stored in the database. Do you want to purge the theme settings from the .info file too?', array('@theme' => $themes[$theme]->info['name'])))) { - return; - } - } - - // Parse the current content of the .info file so we can append the settings - // from the database. - $path = drupal_get_path('theme', $theme) . '/' . $theme . '.info'; - $data = file_get_contents($path); - - // Remove the old theme settings from the .info file. - $data = trim(preg_replace('/^settings\[.*\].*\n?/mi', '', $data)); - - // Append the exported theme settings to the .info file if there are any. - $data = $settings ? $data . "\n\n" . drush_omega_compose_info_file($settings, 'settings') : $data; - - // Write the data to the .info file of the theme. - if (drush_op('file_put_contents', $path, $data)) { - drush_log(dt('The theme settings for the @theme theme have been exported to the .info file of the theme.', array('@theme' => $themes[$theme]->info['name'])), 'success'); - - if (drush_get_option('revert')) { - // Revert the theme settings if the 'revert' option is set and they have - // been exported successfully. In this case, we invoke the API function - // through the drush command to display the messages. - drush_invoke_process('@self', 'omega-revert', array($theme)); - } - - return TRUE; - } - else { - // There was an error while exporting the theme settings. - return drush_set_error('OMEGA_EXPORT_ERROR', dt('An error occurred while trying to export the theme settings for the @theme theme.', array('@theme' => $themes[$theme]->info['name']))); - } -} - -/** - * Implements drush_hook_COMMAND_validate(). - */ -function drush_omega_revert_validate($theme = NULL) { - return drush_omega_validate_theme($theme); -} - -/** - * Implements drush_hook_COMMAND(). - * - * Delete the theme settings that have been stored in the database and thereby - * reverts them to the default settings from the .info file. - * - * @param $theme - * (optional) The machine-readable name of a theme. - */ -function drush_omega_revert($theme = NULL) { - if (drush_get_option('all')) { - // Get a list of all Omega sub-themes. - $themes = array(); - foreach (list_themes() as $key => $info) { - $trail = omega_theme_trail($key); - if (array_key_exists('omega', $trail)) { - $themes[$key] = $info->info['name']; - } - } - - // Get confirmation from user. - drush_print(dt('The settings for the following themes will be reverted: @themes', array('@themes' => implode(', ', $themes)))); - if (!drush_confirm(dt('Do you really want to continue?'))) { - return; - } - } - elseif (!isset($theme) && !$theme = drush_omega_theme_choice(dt('Which theme do you want to revert the theme settings for?'))) { - return; - } - - $info = list_themes(); - $themes = isset($themes) ? $themes : array($theme => $info[$theme]->info['name']); - foreach ($themes as $theme => $name) { - // Delete the theme settings variable for the given theme. - drush_op('variable_del', 'theme_' . $theme . '_settings'); - - // Clear the theme cache. - cache_clear_all('omega:' . $theme . ':', 'cache', TRUE); - } - - // Rebuild the theme data for good measure. - drupal_theme_rebuild(); - system_rebuild_theme_data(); - - drush_log(dt('You have successfully reverted the theme settings for these themes: @themes.', array('@themes' => implode(', ', $themes))), 'success'); -} - -/** - * Implements drush_hook_COMMAND_validate(). - */ -function drush_omega_guard_validate($theme = NULL) { - return drush_omega_validate_theme($theme); -} - -/** - * Implements drush_hook_COMMAND(). - * - * Starts guard for the given theme for compass, theme registry rebuild and - * livereload. - * - * @param $theme - * (optional) The machine-readable name of a theme. - */ -function drush_omega_guard($theme = NULL) { - if (!isset($theme) && !$theme = drush_omega_theme_choice(dt('Which theme do you want to run Guard for?'))) { - return; - } - - // Check if Ruby is installed. - drush_shell_exec('ruby --version'); - $output = reset(drush_shell_exec_output()); - $matches = array(); - if (!preg_match('/^ruby ([0-9][0-9\.]*)/', $output, $matches)) { - // Ruby was not found on this machine. - return drush_set_error(dt('You have to install Ruby version 1.9 or newer.')); - } - elseif (!version_compare($matches[1], '1.8', '>=')) { - // Ruby is outdated. - return drush_set_error(dt('The installed version of Ruby (@version) is outdated. Please upgrade to version 1.9 or newer.', array( - '@version' => $matches[1], - ))); - } - - // Check if Rubygems is installed. - drush_shell_exec('gem --version'); - $output = reset(drush_shell_exec_output()); - $matches = array(); - if (!preg_match('/^[0-9][0-9\.]*$/', $output, $matches)) { - // Rubygems was not found on this machine. - return drush_set_error(dt('You have to install Rubygems version 1.8 or newer.')); - } - elseif (!version_compare($matches[0], '1.8', '>=')) { - // Rubygems is outdated. - return drush_set_error(dt('The installed version of Rubygems (@version) is outdated. Please upgrade to version 1.8 or newer.', array( - '@version' => $matches[0], - ))); - } - - // Check if Bundler is installed. - drush_shell_exec('bundle --version'); - $output = reset(drush_shell_exec_output()); - $matches = array(); - if (!preg_match('/^Bundler version ([0-9][0-9\.]*)/', $output, $matches)) { - // Bundler was not found on this machine. - return drush_set_error(dt('You have to install Bundler version 1.2 or newer.')); - } - elseif (!version_compare($matches[1], '1.2', '>=')) { - // Bundler is outdated. - return drush_set_error(dt('The installed version of Bundler (@version) is outdated. Please upgrade to version 1.2 or newer.', array( - '@version' => $matches[1], - ))); - } - - // Retrieve the path to the theme. - $path = drupal_get_path('theme', $theme); - - // Output an error message if the gemfiles dependencies are not satisfied. - drush_shell_cd_and_exec(DRUPAL_ROOT . '/' . $path, 'bundle check --no-color'); - $output = drush_shell_exec_output(); - switch (reset($output)) { - case "The Gemfile's dependencies are satisfied": - // All is good, we can proceed. - break; - - case 'Could not locate Gemfile': - return drush_set_error(dt('There was no Gemfile at @path.', array( - '@path' => $path, - ))); - - case "Your Gemfile's dependencies could not be satisfied": - // @todo Add prompt for running 'bundle install'. - - default: - return drush_set_error(dt("There was a problem with your setup:\n!error", array( - '!error' => implode("\n", $output), - ))); - } - - // This is the command for running guard through bundler. - $command = 'bundle exec guard'; - if (drush_get_option('screen')) { - drush_shell_exec('screen --version'); - if (!preg_match('/^Screen version/', reset(drush_shell_exec_output()))) { - // Screen was not found on this machine. - return drush_set_error(dt("You have to install 'screen' before you can run 'omega-guard' in a detached screen.")); - } - - // Check if there is already a screen. Running multiple screens at the same - // time ultimately eats up too much performance. This way we ensure that - // you don't accidently run the same screen session multiple times. - drush_shell_exec('screen -list'); - foreach (drush_shell_exec_output() as $output) { - $output = trim($output); - $matches = array(); - if (preg_match('/^((\d+)\.omega:' . $theme . ':guard)/', $output, $matches)) { - $themes = list_themes(); - - // Make sure that we only got one screen for each theme at a time. - if (drush_confirm(dt("There is already a screen running for @theme. Do you want to restart it?", array('@theme' => $themes[$theme]->name)))) { - drush_shell_exec("screen -S $matches[2] -X quit"); - // We found an existing guard session and killed it. - break; - } - else { - // Fine, if the user does not want us to kill the session he has to do - // it manually. - return drush_set_error(dt("There is already a screen running for the @theme theme (@screen). You have to kill the runing screen with '@command' before you can start a new one.", array( - '@theme' => $themes[$theme]->name, - '@screen' => $matches[1], - '@command' => "screen -S $matches[2] -X quit", - ))); - } - } - }; - - // We want to run the command in a detached (-dmS) screen. - $command = "screen -dmS omega:$theme:guard $command"; - } - - // Polling is required for making guard watch work with remote file systems - // e.g. in case of virtual environments where guard runs on the guest but - // the files are modified on the host. - if (drush_get_option('force-polling')) { - $command .= ' --force-polling'; - } - - // Sometimes it seems to be required to set a latency (e.g. 5) if working with - // polling because otherwise the file changes are detected twice. Hence, - // not setting a latency might affect your system performance. If it doesn't - // simply don't worry about it. - if ($latency = drush_get_option('latency')) { - $command .= ' --latency ' . $latency; - } - - // Change the active directory to the theme folder and run the command there. - drush_op('chdir', DRUPAL_ROOT . '/' . drupal_get_path('theme', $theme)); - drush_shell_exec_interactive($command); -} - -/** - * Resolves the destination path for a subtheme. This can either be a profile - * theme folder, a sites theme folder or a theme. - * - * @param $destination - * A destination string, this can either be a site path ('site:foo'), a - * profile path ('profile:foo') or a theme path ('theme:foo'). - * - * @return string|bool - * The full path to the given destination, FALSE if the destination could not - * be resolved. - */ -function drush_omega_resolve_destination($destination) { - list($type, $destination, $custom) = explode(':', $destination); - - // Add a '/' to the custom path suffix. - $custom = $custom ? '/' . $custom : ''; - - switch($type) { - case 'site': - if (array_key_exists($destination, drush_omega_sites())) { - return 'sites/' . $destination . '/themes' . $custom; - } - break; - - case 'profile': - require_once DRUPAL_ROOT . '/includes/install.core.inc'; - if (array_key_exists($destination, install_find_profiles())) { - return 'profiles/' . $destination . '/themes' . $custom; - } - break; - - case 'theme': - if (array_key_exists($destination, list_themes())) { - return drupal_get_path('theme', $destination) . $custom; - } - break; - } -} - -/** - * Helper function for printing a list of available Omega themes. - * - * @param $message - * The message that should be displayed. - * - * @return bool|string - * The machine-readable name of the chosen theme or FALSE if the operation was - * cancelled. - */ -function drush_omega_theme_choice($message) { - $options = array(); - foreach (list_themes() as $key => $info) { - $trail = omega_theme_trail($key); - if (array_key_exists('omega', $trail)) { - $parent = count($trail) > 1 ? array_slice($trail, -2, 1) : FALSE; - $options[$key] = $info->info['name'] . ($parent ? ' (' . dt('Subtheme of @parent', array('@parent' => reset($parent))) . ')' : '') . ' - ' . strip_tags($info->info['description']); - } - } - return drush_choice($options, $message); -} - -/** - * Helper function for printing a list of available starterkits. - * - * @param $basetheme - * The machine-readable name of a basetheme. - * @param $message - * The message that should be displayed. - * - * @return bool|string - * The machine-readable name of the chosen starterkit or FALSE if the - * operation was cancelled. - */ -function drush_omega_starterkit_choice($basetheme, $message) { - $themes = list_themes(); - $options = array(); - foreach (omega_discovery('starterkit', $basetheme) as $key => $info) { - $options[$key] = dt('@name: !description (Provided by @provider)', array( - '@name' => $info['info']['name'], - '!description' => isset($info['info']['description']) ? $info['info']['description'] : dt('No description'), - '@provider' => $themes[$info['theme']]->info['name'], - )); - } - return drush_choice($options, $message); -} - -/** - * Helper function that asks for the desired destination of a subtheme. - * - * @param $message - * The message that should be displayed. - * - * @return bool|string - * The given destination using the pattern "type:destination" - * (e.g. "site:all") or FALSE if the operation was cancelled. - */ -function drush_omega_destination_choice($message) { - drush_print($message); - - // Let the user choose a destination. - $options = array( - 'site' => dt("Site (e.g. 'all' or 'example.com')"), - 'profile' => dt('Installation profile'), - 'theme' => dt('Parent theme'), - ); - - if (!$type = drush_choice($options, dt('Please choose a destination type.'))) { - return FALSE; - } - - switch ($type) { - case 'site': - if (!$destination = drush_choice(drush_omega_sites(), dt('Please choose a site.'))) { - return FALSE; - } - return 'site:' . $destination; - - case 'profile': - require_once DRUPAL_ROOT . '/includes/install.core.inc'; - - $options = array(); - foreach (install_find_profiles() as $profile) { - $info = drupal_parse_info_file(dirname($profile->uri) . '/' . $profile->name . '.info'); - $options[$profile->name] = $info['name']; - } - - if (!$destination = drush_choice($options, dt('Please choose an installation profile.'))) { - return FALSE; - } - return 'profile:' . $destination; - - case 'theme': - if (!$destination = drush_omega_theme_choice(dt('Please choose a theme.'))) { - return FALSE; - } - return 'theme:' . $destination; - - default: - return 'site:all'; - } -} - -/** - * Helper function that continuously prompts for a valid machine-readable name. - * - * @param $message - * The message that should be displayed. - * - * @return string - * A valid, unique machine-readable name. - */ -function drush_omega_require_valid_theme_name($message, $default = NULL) { - while (TRUE) { - // Keep prompting for a machine-name until we get an acceptable value. - $prompt = drush_prompt($message, $default); - - if (!preg_match('/^[a-z][a-z0-9_]*$/', $prompt)) { - drush_print('The machine-readable name is invalid. It may only contain lowercase numbers, letters and underscores and must start with a letter.'); - } - else { - $themes = list_themes(); - // Validate that the machine-readable name of the theme is unique. - if (isset($themes[$prompt])) { - drush_print(dt('A theme with the name @name already exists. The machine-readable name must be unique.', array( - '@name' => $prompt, - ))); - } - else { - // The given machine-readable name is valid. Let's proceed. - return $prompt; - } - } - } -} - -/** - * Recursively rewrites (and renames) all files in a given path. - * - * @param $path - * The path to rewrite all files in. - * @param $search - * The string(s) to look for when replacing the file names and contents. Can - * be an array or a string. - * @param $replace - * The string(s) to replace $search with. Can be an array or a string. - * - * @return bool - * TRUE if the operation succeeded, FALSE otherwise. - * - * @see omega_drush_replace_contents() - * @see str_replace() - */ -function drush_omega_rewrite_recursive($path, $search, $replace) { - if (!is_dir($path)) { - return drush_set_error('INVALID_PATH', dt('The given path @path is not a directory.', array( - '!path' => $path, - ))); - } - - // If the file actually is a directory, proceed with the recursion. - $directory = new DirectoryIterator($path); - foreach ($directory as $item) { - if ($item->isDot()) { - // Do not process '..' and '.'. - continue; - } - - // Retrieve the path of the current item. - $pathname = $item->getPathname(); - if ($item->isDir() && !drush_omega_rewrite_recursive($pathname, $search, $replace)) { - return FALSE; - } - elseif ($item->isFile()) { - // If it is a file, try to replace its contents. - $contents = file_get_contents($pathname); - if (($changed = preg_replace($search, $replace, $contents)) === NULL) { - return drush_set_error('REWRITE_FAILURE', dt('There was an error while trying to rewrite !path (!search to !replace)', array( - '!path' => $pathname, - '!search' => $search, - '!replace' => $replace, - ))); - } - - if ($contents !== $changed) { - file_put_contents($pathname, $changed); - } - } - - // Try to rename (move) the file if the name was changed. - $original = basename($pathname); - if (($renamed = preg_replace($search, $replace, $original)) === NULL) { - return drush_set_error('REWRITE_FAILURE', dt('There was an error while trying to rewrite !path (!search to !replace)', array( - '!path' => $path, - '!search' => $search, - '!replace' => $replace, - ))); - } - - // Move (rename) if the file or directory name was changed. - if ($original !== $renamed) { - $new = dirname($pathname) . "/$renamed"; - if (!drush_move_dir($pathname, $new, TRUE)) { - return FALSE; - }; - } - } - - return TRUE; -} - -/** - * Recursively builds an .info file structure from an array. - * - * @param $array - * The array to build the .info file from. - * @param $prefix - * (Optional) Used internally to forward the current prefix (level of nesting) - * for the keys. - * - * @return string - * A .info file string. - */ -function drush_omega_compose_info_file($array, $prefix = FALSE) { - $info = ''; - - foreach ($array as $key => $value) { - if (is_array($value)) { - // This is an array, let's proceed with the next level. - $info .= drush_omega_compose_info_file($value, (!$prefix ? $key : "{$prefix}[{$key}]")); - } - else { - // Escape all single quotes. - $value = str_replace("'", "\'", $value); - // Wrap the value in single quotes if it has any trailing or leading - // whitespace or it is an empty string from the start. - $value = $value === '' || trim($value) != $value ? "'" . $value . "'" : $value; - // If the key is numeric remove it entirely (simple brackets are enough in - // this case). - $key = is_numeric($key) ? '' : $key; - - $info .= $prefix ? ("{$prefix}[" . $key .']') : $key; - $info .= ' = ' . $value . "\n"; - } - } - - return $info; -} - -/** - * Retrieve an array of available sites. - * - * @return array - * An array that contains all the available sites in a multisite environment. - */ -function drush_omega_sites() { - $sites = array(); - // Look up the available sites by iterating over the contents of the sites - // directory. - $files = new DirectoryIterator(DRUPAL_ROOT . '/sites'); - foreach ($files as $file) { - // The sites/default folder is not a valid destination. - if ($file->isDir() && !$file->isDot() && $file->getFileName() != 'default') { - $name = $file->getFileName(); - $sites[$name] = $name; - } - } - return $sites; -} - -/** - * Helper function for generating a valid machine-readable name for a theme from - * any string. - * - * @param $string - * The string to generate the machine-readable name from. - * - * @return string - * The generated machine-readable name. - */ -function drush_omega_generate_theme_name($string) { - // Machine-readable names have to start with a lowercase letter. - $string = preg_replace('/^[^a-z]+/', '', strtolower($string)); - // Machine-readable names may only contain alphanumeric characters and - // underscores. - $string = preg_replace('/[^a-z0-9_]+/', '_', $string); - // Trim all trailing and leading underscores. - $string = trim($string, '_'); - - $themes = list_themes(); - if (isset($themes[$string])) { - $plain = $string; - $counter = 0; - - while (isset($themes[$string])) { - // Make sure that the machine-readable name of the theme is unique. - $string = $plain . '_' . $counter++; - } - } - - return $string; -} - -/** - * Helper function for validating a given theme. - */ -function drush_omega_validate_theme($theme = NULL) { - if (!isset($theme)) { - return; - } - - // Rebuild the theme data so that we can safely check for the existence of - // themes by using the information provided by list_themes(). - system_rebuild_theme_data(); - - $themes = list_themes(); - // Check if the given theme exists. - if (!isset($themes[$theme])) { - return drush_set_error('OMEGA_THEME_DOES_NOT_EXIST', dt('There is no theme with the name @theme.', array( - '@theme' => $theme, - ))); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/omega.inc --- a/sites/all/themes/omega/includes/omega.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,697 +0,0 @@ -base_themes)) { - $cache[$theme] = $GLOBALS['theme_info']->base_themes; - } - - $themes = list_themes(); - if (empty($cache[$theme]) && isset($themes[$theme]->info['base theme'])) { - $cache[$theme] = system_find_base_themes($themes, $theme); - } - - // Add our current subtheme ($key) to that array. - $cache[$theme][$theme] = $themes[$theme]->info['name']; - - return $cache[$theme]; -} - -/** - * Helper function for generating a regex from a list of paths. - * - * Generates a single regex from a list of file paths that can be used to match - * JS or CSS files using preg_grep() for example in hook_css_alter() or - * hook_js_alter(). The '*' (asterisk) character can be used as a wild-card. - * - * @param $paths - * An array of file paths. - * - * @return string - * The generated regex. - * - * @see hook_js_alter() - * @see hook_css_alter() - */ -function omega_generate_path_regex($paths) { - foreach ($paths as &$item) { - // The first segment (everything before the first slash) is the namespace. - // This rule only applies to local files... So if the namespace can not be - // mapped to a module, profile or theme engine we assume that the we are - // trying to target an external file. - list($namespace) = explode('/', $item); - - // Check if the namespace refers to a file residing in the 'misc' folder or - // if it is a global wildcard. - if ($namespace !== '*' && $namespace !== 'misc') { - // Otherwise, check if it refers to a theme, module, profile or theme - // engine. - foreach (array('theme', 'module', 'profile', 'theme_engine') as $type) { - // We can't use drupal_get_path() directly because that uses dirname() - // internally which returns '.' if no filename was found. - if ($filename = drupal_get_filename($type, $namespace)) { - $prefix = dirname($filename); - $item = substr_replace($item, $prefix, 0, strlen($namespace)); - break; - } - } - } - - // Escape any regex characters and turn asterisk wildcards into actual regex - // wildcards. - $item = preg_quote($item, '/'); - $item = str_replace('\*', '(.*)', $item); - } - - return '/^' . implode('|', $paths) . '$/'; -} - -/** - * Helper function for eliminating elements from an array using a simplified - * regex pattern. - * - * @param $elements - * The array of elements that should have some of its items removed. - * @param $regex - * A regex as generated by omega_generate_path_regex(). - */ -function omega_exclude_assets(&$elements, $regex) { - $mapping = omega_generate_asset_mapping($elements); - - // Finally, implode the array of items to exclude into a proper regex and - // invoke in on the array of files to be excluded. - $elements = array_diff_key($elements, preg_grep($regex, $mapping)); -} - -/** - * Helper function for generating a map of assets based on the data attribute. - * - * We can not rely on the array keys of the JS and CSS file arrays in Drupal - * because in case of inline JS or CSS (which uses numerical array keys) and due - * to potential overrides of the 'data' attribute which holds the actual, - * reliable path of the file. This function returns a single-level array of - * reliable JS/CSS file paths using the original array keys as keys. Elements of - * type 'inline' or 'setting' are ignored. - * - * @param $elements - * An array of JS or CSS files as given in hook_css_alter() or - * hook_js_alter(). - * - * @return array - * A map of file paths generated from $elements. - * - * @see hook_js_alter() - * @see hook_css_alter() - */ -function omega_generate_asset_mapping($elements) { - $mapping = array(); - foreach ($elements as $key => $item) { - if ($item['type'] == 'inline' || $item['type'] == 'setting') { - // Naturally, in-line CSS is not supported. - continue; - } - - // We need to build an array containing just the 'data' attribute because - // that's the actual path of the file. The array key of the elements can - // be something else if someone is sneaky enough to use drupal_add_js() or - // drupal_add_css() with a bogus first argument (normally, that is the - // path to the file) and then specify the actual path through the 'data' - // attribute in the $options array. - $mapping[$key] = $item['data']; - } - - return $mapping; -} - -/** - * Retrieves the array of enabled extensions for a theme. Extensions can be - * registered through the .info file. Each extension can define a theme settings - * form altering function named - * 'THEMENAME_extension_EXTENSION_theme_settings_form_alter()' through a file - * named 'THEME_ROOT/includes/EXTENSION/EXTENSION.settings.inc' to have it - * automatically included whenever the theme settings form is displayed. Each - * extension can also define a - * 'THEMENAME_extension_EXTENSION_theme_registry_alter()' function through a - * file named 'THEME_ROOT/includes/EXTENSION/EXTENSION.inc' to register custom - * hooks with the theme registry. - * - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return array - * The theme info array of the passed or current theme. - * - * @see _system_default_theme_features() - * @see omega_extension_development_theme_settings_form_alter() - * @see omega_extension_development_theme_registry_alter() - */ -function omega_extensions($theme = NULL, $reset = FALSE) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - if (!$reset) { - if (($extensions = &drupal_static(__FUNCTION__)) && isset($extensions[$theme])) { - return $extensions[$theme]; - } - - if (($cache = cache_get('omega:' . $theme . ':extensions')) !== FALSE) { - return $extensions[$theme] = $cache->data; - } - } - - // Extensions can't be hidden. - $extensions[$theme] = omega_discovery('extension', $theme); - - foreach ($extensions[$theme] as $extension => &$info) { - // Make sure that the theme variable is never altered. - $context = $theme; - drupal_alter('omega_extension_info', $info, $context); - - // Determine if the extension is enabled. - $info['enabled'] = omega_theme_get_setting('omega_toggle_extension_' . $extension, !empty($info['info']['enabled'])); - - // Check if all dependencies are met. - $info['errors'] = FALSE; - if (!empty($info['info']['dependencies'])) { - foreach ($info['info']['dependencies'] as $dependency) { - $dependency = drupal_parse_dependency($dependency); - - if ((!$module = system_get_info('module', $dependency['name'])) || omega_check_incompatibility($dependency, $module['version'])) { - $info['errors'] = TRUE; - } - } - } - } - - // Write to the cache. - cache_set('omega:' . $theme . ':extensions', $extensions[$theme]); - - return $extensions[$theme]; -} - -/** - * Determines if an extension is enabled. - * - * @param $extension - * The machine-readable name of an extension. - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return bool - * TRUE if the extension is enabled, FALSE otherwise. - */ -function omega_extension_enabled($extension, $theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - if (($extensions = omega_extensions($theme)) && isset($extensions[$extension])) { - return empty($extensions[$extension]['errors']) && !empty($extensions[$extension]['enabled']) && variable_get('omega_toggle_extension_' . $extension, TRUE); - } -} - -/** - * Looks up the info array of all themes in the theme trail and retrieves a - * particular info array element. - */ -function omega_theme_trail_info($element, $merge = TRUE, $theme = NULL) { - $output = array(); - - // Loop over all themes in the theme trail and look up $element in the .info - // array. - foreach (omega_theme_trail($theme) as $key => $name) { - $info = omega_theme_info($key); - - // If $merge is TRUE we combine all the results of all themes in the theme - // trail. Otherwise we just return the first occurrence. - if (isset($info[$element]) && is_array($info[$element])) { - $output = array_merge($info[$element], $output); - - if (!$merge) { - return array('theme' => $key, 'info' => $output); - } - } - } - - return $output; -} - -/** - * Retrieves the full info array of a theme. - * - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return array - * The theme info array of the passed or current theme. - */ -function omega_theme_info($theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - // If this is the current theme, just load the theme info from the globals. - // Note: The global 'theme_key' property is not reliable in this case because - // it gets overridden on theme settings pages. - if ($theme == $GLOBALS['theme']) { - return $GLOBALS['theme_info']->info; - } - - $themes = list_themes(); - return $themes[$theme]->info; -} - -/** - * Invoke a hook in all themes in the theme trail that implement it. - * - * @param $hook - * The name of the hook to invoke. - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * @param ... - * Arguments to pass to the hook. - * - * @return array - * An array of return values of the hook implementations. If themes return - * arrays from their implementations, those are merged into one array. - * - * @see module_invoke_all() - */ -function omega_invoke_all($hook, $theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - $args = func_get_args(); - // Remove $hook from the arguments. - unset($args[0], $args[1]); - - $return = array(); - foreach (omega_theme_trail($theme) as $key => $name) { - $function = $key . '_' . $hook; - - if (function_exists($function)) { - $result = call_user_func_array($function, array_merge(array($theme), array_values($args))); - if (isset($result) && is_array($result)) { - // Append the 'theme' property to each array element. - foreach ($result as &$item) { - $item['theme'] = $key; - } - $return = array_merge_recursive($return, $result); - } - elseif (isset($result)) { - $return[] = $result; - } - } - } - return $return; -} - -/** - * Custom implementation of drupal_array_get_nested_value() that also supports - * objects instead of just arrays. - * - * @param $object - * The array or object from which to get the value. - * @param $parents - * An array of parent keys of the value, starting with the outermost key. - * @param $key_exists - * (optional) If given, an already defined variable that is altered by - * reference. - * - * @return mixed - * The requested nested value. Possibly NULL if the value is NULL or not all - * nested parent keys exist. $key_exists is altered by reference and is a - * Boolean that indicates whether all nested parent keys exist (TRUE) or not - * (FALSE). This allows to distinguish between the two possibilities when NULL - * is returned. - * - * @see drupal_array_get_nested_value() - */ -function omega_get_nested_value(&$object, array $parents, &$key_exists = NULL) { - $ref = &$object; - foreach ($parents as $parent) { - if (is_array($ref) && array_key_exists($parent, $ref)) { - $ref = &$ref[$parent]; - } - elseif (is_object($ref) && property_exists($ref, $parent)) { - $ref = &$ref->$parent; - } - else { - $key_exists = FALSE; - return NULL; - } - } - $key_exists = TRUE; - return $ref; -} - -/** - * Retrieves the info array for all available layouts. - * - * @return array - * An array of available layouts for the given theme. - */ -function omega_layouts_info() { - if (($layouts = &drupal_static(__FUNCTION__)) !== NULL) { - return $layouts; - } - - // Try to retrieve the layouts definitions from cache. - if (($cache = cache_get('omega:layouts')) !== FALSE) { - return $layouts = $cache->data; - } - - // Layouts do not have a specific theme scope. - $layouts = omega_discovery('layout', FALSE); - foreach ($layouts as $layout => &$info) { - $info['attached'] = array(); - $info['template'] = isset($info['info']['template']) ? $info['info']['template'] : $layout; - $root = drupal_get_path('theme', $info['theme']); - - if (isset($info['info']['stylesheets'])) { - foreach ($info['info']['stylesheets'] as $media => $files) { - foreach ($files as $key => $file) { - if (is_file($info['path'] . '/' . $file)) { - // First, check if the file exists in the layout's path. - $path = $info['path'] . '/' . $file; - } - elseif (is_file($root . '/' . $file)) { - // Otherwise, check if the file exists in the theme's path. - $path = $root . '/' . $file; - } - else { - // The specified file does not exist. - continue; - } - - $info['attached']['css']["$media:$key"] = array( - 'data' => $path, - 'media' => $media, - 'group' => CSS_THEME, - 'every_page' => TRUE, - 'weight' => -10, - ); - } - } - } - - // Look up possible CSS and JS file overrides. - if (isset($info['info']['scripts'])) { - foreach ($info['info']['scripts'] as $key => $file) { - if (is_file($info['path'] . '/' . $file)) { - // First, check if the file exists in the layout's path. - $path = $info['path'] . '/' . $file; - } - elseif (is_file($root . '/' . $file)) { - // Otherwise, check if the file exists in the theme's path. - $path = $root . '/' . $file; - } - else { - // The specified file does not exist. - continue; - } - - $info['attached']['js'][$key] = array( - 'data' => $path, - 'group' => JS_THEME, - 'every_page' => TRUE, - 'weight' => -10, - ); - } - } - } - - // Give modules and themes a chance to alter the layout info array. - drupal_alter('omega_layouts_info', $layouts); - - // Cache the layout definitions in the database. - cache_set('omega:layouts', $layouts); - - return $layouts; -} - -/** - * Retrieves the active layout for the current page. - * - * @return array|bool - * The info array for the active layout or FALSE if the current page does not - * use an alternative page layout. - */ -function omega_layout() { - if (($cache = &drupal_static(__FUNCTION__)) !== NULL) { - return $cache; - } - - // Load the default layout from the theme settings. - $layout = omega_theme_get_setting('omega_layout', 'simple'); - drupal_alter('omega_layout', $layout); - - $layouts = omega_layouts_info(); - $cache = isset($layouts[$layout]) ? $layouts[$layout] : FALSE; - - return $cache; -} - -/** - * Allow themes to easily define libraries. - * - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return array - * An array of libraries defined by themes in the theme trail of the given - * theme. - */ -function omega_theme_libraries_info($theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - // Check if the libraries have already been statically cached. - if (($libraries = &drupal_static(__FUNCTION__)) && isset($libraries[$theme])) { - return $libraries[$theme]; - }; - - // Try to retrieve the library definitions from cache. - if (($cache = cache_get("omega:$theme:libraries")) !== FALSE) { - return $libraries[$theme] = $cache->data; - } - - // Retrieve the libraries by invoking the hook. - $libraries[$theme] = omega_invoke_all('omega_theme_libraries_info'); - - $context = $theme; - // Give modules and themes a chance to alter the libraries info array. - drupal_alter('omega_theme_libraries_info', $libraries[$theme], $context); - - // Cache the layout definitions in the database. - cache_set("omega:$theme:libraries", $libraries[$theme]); - - return $libraries[$theme]; -} - -/** - * Helper function for discovering layouts, extensions or other plugins of any - * sort in the theme trail. - * - * @param $type - * A theme extension type (e.g. layout or extension). - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return array - * An array containing the discovered definitions. - */ -function omega_discovery($type, $theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - if (($discovery = &drupal_static(__FUNCTION__, array())) && isset($discovery[$theme][$type])) { - return $discovery[$theme][$type]; - } - - $discovery[$theme][$type] = array(); - - // Retrieve all themes from the theme trail of the given theme. - $themes = $theme === FALSE ? list_themes() : omega_theme_trail($theme); - - // Collect paths to all sub-themes grouped by base themes. These will be - // used for filtering. This allows base themes to have sub-themes in its - // folder hierarchy without affecting the base themes template discovery. - $paths = array(); - foreach ($themes as $key => $info) { - if (!empty($info->base_theme)) { - $paths[$info->base_theme][$key] = dirname($info->filename); - } - } - foreach ($paths as $basetheme => $subthemes) { - foreach ($subthemes as $subtheme => $path) { - if (isset($paths[$subtheme])) { - $paths[$basetheme] = array_merge($paths[$basetheme], $paths[$subtheme]); - } - } - } - - $strlen = strlen($type) + 1; - foreach ($themes as $key => $label) { - // Retrieve the array of paths that should be ignored for this theme. - $ignore = isset($paths[$key]) ? $paths[$key] : array(); - $path = drupal_get_path('theme', $key); - - // Support files without '.inc' extension for backwards compatibility. - foreach (file_scan_directory($path, '/\.' . $type . '(\.inc)?$/', array('key' => 'name')) as $name => $file) { - // Ignore sub-theme templates for the current theme. - if (strpos($file->uri, str_replace($ignore, '', $file->uri)) !== 0) { - continue; - } - - if (substr($name, -$strlen) === '.' . $type) { - $name = substr($name, 0, strlen($name) - $strlen); - } - - if ($info = drupal_parse_info_file($file->uri)) { - $discovery[$theme][$type][$name] = array( - 'name' => $name, - 'path' => dirname($file->uri), - 'file' => $file->uri, - 'info' => $info, - 'theme' => $key, - ); - } - } - } - - return $discovery[$theme][$type]; -} - -/** - * Checks whether a version is compatible with a given dependency. - * - * This is a wrapper for drupal_check_incompatibility() which strips the core - * version and any potential development version suffix from the given string. - * - * @param $dependency - * The parsed dependency structure from drupal_parse_dependency(). - * @param $current - * The version to check against (like 4.2). - * - * @return - * NULL if compatible, otherwise the original dependency version string that - * caused the incompatibility. - * - * @see drupal_check_incompatibility() - * @see drupal_parse_dependency() - */ -function omega_check_incompatibility($dependency, $current) { - // Remove the core version from the version string. - $current = preg_replace('/^' . DRUPAL_CORE_COMPATIBILITY . '-/', '', $current); - // Remove any potential development version suffixes from the string. - $current = preg_replace('/-dev$/', '', $current); - - return drupal_check_incompatibility($dependency, $current); -} - -/** - * Finds the first occurrence of a given file in the theme trail. - * - * @param $file - * The relative path to a file. - * @param $theme - * (Optional) The key (machine-readable name) of a theme. Defaults to the key - * of the current theme. - * - * @return string - * The path to the file. If the file does not exist at all, it will simply - * return the path of the file as it would be if it existed in the given theme - * directly. This ensures that the code that uses this function does not break - * if a file does not exist anywhere. - */ -function omega_theme_trail_file($file, $theme = NULL) { - $theme = isset($theme) ? $theme : $GLOBALS['theme_key']; - - // Iterate over all themes in the theme trail (starting with the active theme) - // and return the first match. - $current = NULL; - foreach (array_reverse(omega_theme_trail($theme)) as $name => $info) { - $current = drupal_get_path('theme', $name) . '/' . $file; - if (file_exists($current)) { - return $current; - } - } - - // The default (fallback) path is the path of the active theme, even if it - // does not actually have that file. - return drupal_get_path('theme', $theme) . '/' . $file; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/includes/scripts.inc --- a/sites/all/themes/omega/includes/scripts.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,411 +0,0 @@ - $item) { - if ($item['scope'] == $scope) { - $items[$key] = $item; - } - } - - // Sort the JavaScript so that it appears in the correct order. - uasort($items, 'drupal_sort_css_js'); - - // In Drupal 8, there's a JS_SETTING group for making setting variables - // appear last after libraries have loaded. In Drupal 7, this is forced - // without that group. We do not use the $key => $item type of iteration, - // because PHP uses an internal array pointer for that, and we're modifying - // the array order inside the loop. - foreach (array_keys($items) as $key) { - if ($items[$key]['type'] == 'setting') { - $item = $items[$key]; - unset($items[$key]); - $items[$key] = $item; - } - } - - // There is no need for the ajax page state if there is no ajax js! - if (array_key_exists('misc/ajax.js', $items)) { - // Provide the page with information about the individual JavaScript files - // used, information not otherwise available when aggregation is enabled. - $setting['ajaxPageState']['js'] = array_fill_keys(array_keys($items), 1); - unset($setting['ajaxPageState']['js']['settings']); - drupal_add_js($setting, 'setting'); - - // If we're outputting the header scope, then this might be the final time - // that drupal_get_js() is running, so add the setting to this output as well - // as to the drupal_add_js() cache. If $items['settings'] doesn't exist, it's - // because drupal_get_js() was intentionally passed a $javascript argument - // stripped of settings, potentially in order to override how settings get - // output, so in this case, do not add the setting to this output. - if ($scope == 'header' && isset($items['settings'])) { - $items['settings']['data'][] = $setting; - } - } - - // Render the HTML needed to load the JavaScript. - $elements = array( - '#type' => 'scripts', - '#items' => $items, - ); - - return drupal_render($elements); -} - -/** - * Callback to add the elements needed for JavaScript tags to be rendered. - * - * This function evaluates the aggregation enabled/disabled condition on a group - * by group basis by testing whether an aggregate file has been made for the - * group rather than by testing the site-wide aggregation setting. This allows - * this function to work correctly even if modules have implemented custom - * logic for grouping and aggregating files. - * - * @param $elements - * A render array containing: - * - #items: The JavaScript items as returned by drupal_add_js() and - * altered by drupal_get_js(). - * - #group_callback: A function to call to group #items. Following - * this function, #aggregate_callback is called to aggregate items within - * the same group into a single file. - * - #aggregate_callback: A function to call to aggregate the items within - * the groups arranged by the #group_callback function. - * - * @return array - * A render array that will render to a string of JavaScript tags. - * - * @see drupal_get_js() - */ -function omega_pre_render_scripts($elements) { - // Group and aggregate the items. - if (isset($elements['#group_callback'])) { - $elements['#groups'] = $elements['#group_callback']($elements['#items']); - } - if (isset($elements['#aggregate_callback'])) { - $elements['#aggregate_callback']($elements['#groups']); - } - - // A dummy query-string is added to filenames, to gain control over - // browser-caching. The string changes on every update or full cache - // flush, forcing browsers to load a new copy of the files, as the - // URL changed. Files that should not be cached (see drupal_add_js()) - // get REQUEST_TIME as query-string instead, to enforce reload on every - // page request. - $default_query_string = variable_get('css_js_query_string', '0'); - - // For inline JavaScript to validate as XHTML, all JavaScript containing - // XHTML needs to be wrapped in CDATA. To make that backwards compatible - // with HTML 4, we need to comment out the CDATA-tag. - $embed_prefix = "\n\n"; - - // Since JavaScript may look for arguments in the URL and act on them, some - // third-party code might require the use of a different query string. - $js_version_string = variable_get('drupal_js_version_query_string', 'v='); - - // Defaults for each SCRIPT element. - $element_defaults = array( - '#type' => 'html_tag', - '#tag' => 'script', - '#value' => '', - '#attributes' => array( - 'type' => 'text/javascript', - ), - ); - - // Loop through each group. - foreach ($elements['#groups'] as $group) { - // If a group of files has been aggregated into a single file, - // $group['data'] contains the URI of the aggregate file. Add a single - // script element for this file. - if ($group['type'] == 'file' && isset($group['data'])) { - $element = $element_defaults; - $element['#attributes']['src'] = file_create_url($group['data']); - $element['#browsers'] = $group['browsers']; - $elements[] = $element; - } - // For non-file types, and non-aggregated files, add a script element per - // item. - else { - foreach ($group['items'] as $item) { - // Element properties that do not depend on item type. - $element = $element_defaults; - if (!empty($item['defer'])) { - $element['#attributes']['defer'] = 'defer'; - } - $element['#browsers'] = $item['browsers']; - - // Element properties that depend on item type. - switch ($item['type']) { - case 'setting': - $element['#value_prefix'] = $embed_prefix; - $element['#value'] = 'jQuery.extend(Drupal.settings, ' . drupal_json_encode(drupal_array_merge_deep_array($item['data'])) . ");"; - $element['#value_suffix'] = $embed_suffix; - break; - - case 'inline': - $element['#value_prefix'] = $embed_prefix; - $element['#value'] = $item['data']; - $element['#value_suffix'] = $embed_suffix; - break; - - case 'file': - $query_string = empty($item['version']) ? $default_query_string : $js_version_string . $item['version']; - $query_string_separator = (strpos($item['data'], '?') !== FALSE) ? '&' : '?'; - $element['#attributes']['src'] = file_create_url($item['data']) . $query_string_separator . ($item['cache'] ? $query_string : REQUEST_TIME); - break; - - case 'external': - $element['#attributes']['src'] = $item['data']; - break; - } - - $elements[] = $element; - } - } - } - - return $elements; -} - -/** - * Default callback to aggregate JavaScript files. - * - * Having the browser load fewer JavaScript files results in much faster page - * loads than when it loads many small files. This function aggregates files - * within the same group into a single file unless the site-wide setting to do - * so is disabled (commonly the case during site development). To optimize - * download, it also compresses the aggregate files by removing comments, - * whitespace, and other unnecessary content. - * - * @param $js_groups - * An array of JavaScript groups as returned by drupal_group_js(). For each - * group that is aggregated, this function sets the value of the group's - * 'data' key to the URI of the aggregate file. - * - * @see drupal_group_js() - * @see drupal_pre_render_scripts() - */ -function omega_aggregate_js(&$js_groups) { - // Only aggregate when the site is configured to do so, and not during an - // update. - if (variable_get('preprocess_js', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) { - foreach ($js_groups as $key => $group) { - if ($group['type'] == 'file' && $group['preprocess']) { - $js_groups[$key]['data'] = omega_build_js_cache($group['items']); - } - } - } -} - -/** - * Aggregates JavaScript files into a cache file in the files directory. - * - * The file name for the JavaScript cache file is generated from the hash of - * the aggregated contents of the files in $files. This forces proxies and - * browsers to download new JavaScript when the JavaScript changes. - * - * The cache file name is retrieved on a page load via a lookup variable that - * contains an associative array. The array key is the hash of the names in - * $files while the value is the cache file name. The cache file is generated - * in two cases. First, if there is no file name value for the key, which will - * happen if a new file name has been added to $files or after the lookup - * variable is emptied to force a rebuild of the cache. Second, the cache file - * is generated if it is missing on disk. Old cache files are not deleted - * immediately when the lookup variable is emptied, but are deleted after a set - * period by drupal_delete_file_if_stale(). This ensures that files referenced - * by a cached page will still be available. - * - * @param $files - * An array of JavaScript files to aggregate and compress into one file. - * - * @return string|bool - * The URI of the cache file, or FALSE if the file could not be saved. - */ -function omega_build_js_cache($files) { - $contents = ''; - $uri = ''; - $map = variable_get('drupal_js_cache_files', array()); - // Create a new array so that only the file names are used to create the hash. - // This prevents new aggregates from being created unnecessarily. - $js_data = array(); - foreach ($files as $file) { - $js_data[] = $file['data']; - } - $key = hash('sha256', serialize($js_data)); - if (isset($map[$key])) { - $uri = $map[$key]; - } - - if (empty($uri) || !file_exists($uri)) { - // Build aggregate JS file. - foreach ($files as $path => $info) { - if ($info['preprocess']) { - // Append a ';' and a newline after each JS file to prevent them from running together. - $contents .= file_get_contents($info['data']) . ";\n"; - } - } - // Prefix filename to prevent blocking by firewalls which reject files - // starting with "ad*". - $filename = 'js_' . drupal_hash_base64($contents) . '.js'; - // Create the js/ within the files folder. - $jspath = 'public://js'; - $uri = $jspath . '/' . $filename; - // Create the JS file. - file_prepare_directory($jspath, FILE_CREATE_DIRECTORY); - if (!file_exists($uri) && !file_unmanaged_save_data($contents, $uri, FILE_EXISTS_REPLACE)) { - return FALSE; - } - // If JS gzip compression is enabled, clean URLs are enabled (which means - // that rewrite rules are working) and the zlib extension is available then - // create a gzipped version of this file. This file is served conditionally - // to browsers that accept gzip using .htaccess rules. - if (variable_get('js_gzip_compression', TRUE) && variable_get('clean_url', 0) && extension_loaded('zlib')) { - if (!file_exists($uri . '.gz') && !file_unmanaged_save_data(gzencode($contents, 9, FORCE_GZIP), $uri . '.gz', FILE_EXISTS_REPLACE)) { - return FALSE; - } - } - $map[$key] = $uri; - variable_set('drupal_js_cache_files', $map); - } - return $uri; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.matchmedia.js --- a/sites/all/themes/omega/js/jquery.matchmedia.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -(function ($, window) { - - 'use strict'; - - /** - * Check if the given media query currently applies. - * - * @param query - * The media query to check for. - * - * @deprecated - * Use window.matchMedia() instead. - */ - $.matchmedia = function (query) { - return window.matchMedia(query); - }; - - /** - * Special event for listening to media query changes. - * - * @deprecated - * Use window.matchMedia(query).addListener(callback) instead. - */ - var event = $.event.special.mediaquery = { - objects: {}, - - handler: function (handler) { - return function (mql) { - mql.applies = mql.matches; - handler.call(mql, mql); - }; - }, - - add: function (handleObj) { - event.objects[handleObj.guid] = window.matchMedia(handleObj.data); - event.objects[handleObj.guid].addListener(event.handler(handleObj.handler)); - }, - - remove: function (handleObj) { - event.objects[handleObj.guid].removeListener(event.handler(handleObj.handler)); - } - }; - - /** - * Event shortcut. - * - * @deprecated - * Use window.matchMedia(query).addListener(callback) instead. - */ - $.fn.mediaquery = function (query, callback) { - return $(this).bind('mediaquery', query, callback); - }; - -})(jQuery, window); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.matchmedia.min.js --- a/sites/all/themes/omega/js/jquery.matchmedia.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($,window){"use strict";$.matchmedia=function(query){return window.matchMedia(query)};var event=$.event.special.mediaquery={objects:{},handler:function(handler){return function(mql){mql.applies=mql.matches;handler.call(mql,mql)}},add:function(handleObj){event.objects[handleObj.guid]=window.matchMedia(handleObj.data);event.objects[handleObj.guid].addListener(event.handler(handleObj.handler))},remove:function(handleObj){event.objects[handleObj.guid].removeListener(event.handler(handleObj.handler))}};$.fn.mediaquery=function(query,callback){return $(this).bind("mediaquery",query,callback)}}(jQuery,window); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.resizeend.js --- a/sites/all/themes/omega/js/jquery.resizeend.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -(function ($) { - - 'use strict'; - - /** - * Container for the resizeend timeout. - */ - var resizeTimeout; - - /** - * Throttled resize event. Fires only once after the resize ended. - */ - var event = $.event.special.resizeend = { - setup: function () { - $(this).bind('resize', event.handler); - }, - - teardown: function () { - $(this).unbind('resize', event.handler); - }, - - handler: function (e) { - var context = this; - if (resizeTimeout) { - clearTimeout(resizeTimeout); - } - - resizeTimeout = setTimeout(function () { - // Set correct event type - e.type = 'resizeend'; - $.event.handle.apply(context); - }, 150); - } - }; - - /** - * Wrapper for the resizeend event. - */ - $.fn.resizeend = function (handler) { - return $(this).bind('resizeend', handler); - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.resizeend.min.js --- a/sites/all/themes/omega/js/jquery.resizeend.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($){"use strict";var resizeTimeout;var event=$.event.special.resizeend={setup:function(){$(this).bind("resize",event.handler)},teardown:function(){$(this).unbind("resize",event.handler)},handler:function(e){var context=this;if(resizeTimeout){clearTimeout(resizeTimeout)}resizeTimeout=setTimeout(function(){e.type="resizeend";$.event.handle.apply(context)},150)}};$.fn.resizeend=function(handler){return $(this).bind("resizeend",handler)}}(jQuery); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.scrollable.js --- a/sites/all/themes/omega/js/jquery.scrollable.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -(function ($) { - - 'use strict'; - - /** - * Custom expression for filtering for scrollable elements. - */ - $.expr[':'].scrollable = function (elem) { - var scrollable = true; - // Backup the original scroll position. - var original = $(elem).scrollTop(); - - if (original === 0) { - $(elem).scrollTop(1); - scrollable = $(elem).scrollTop() === 1; - $(elem).scrollTop(0); - } - - return scrollable; - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/jquery.scrollable.min.js --- a/sites/all/themes/omega/js/jquery.scrollable.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($,window){"use strict";$.matchmedia=function(query){return window.matchMedia(query)};var event=$.event.special.mediaquery={objects:{},handler:function(handler){return function(mql){mql.applies=mql.matches;handler.call(mql,mql)}},add:function(handleObj){event.objects[handleObj.guid]=window.matchMedia(handleObj.data);event.objects[handleObj.guid].addListener(event.handler(handleObj.handler))},remove:function(handleObj){event.objects[handleObj.guid].removeListener(event.handler(handleObj.handler))}};$.fn.mediaquery=function(query,callback){return $(this).bind("mediaquery",query,callback)}}(jQuery,window); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.admin.js --- a/sites/all/themes/omega/js/omega.admin.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -(function ($) { - - 'use strict'; - - /** - * Allows administrators to click on the icon of a layout instead of having to - * target the radio button in order to select it. - */ - Drupal.behaviors.omegaThemeSettingsLayouts = { - attach: function (context) { - $('.form-item-omega-layout .omega-layout-icon', context).click(function () { - $(this).siblings('.form-item').find('input').click().change(); - }); - } - }; - - /** - * Provide a nice little summary for the vertical tab pane of each extension - * which indicates whether or not it is currently enabled. - */ - Drupal.behaviors.omegaExtensionSummary = { - attach: function (context) { - $('fieldset[id^=edit-].omega-extension', context).each(function () { - var extension = $(this).attr('id').substring(5); - var $fieldset = $(this); - var $checkbox = $fieldset.find('input[name="omega_toggle_extension_' + extension + '"]'); - - $fieldset.drupalSetSummary(function () { - if (!$checkbox.is(':checked')) { - return Drupal.t('This extension is currently disabled'); - } - }); - - $checkbox.change(function () { - $fieldset.trigger('summaryUpdated'); - }); - }); - } - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.admin.min.js --- a/sites/all/themes/omega/js/omega.admin.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($){"use strict";Drupal.behaviors.omegaThemeSettingsLayouts={attach:function(context){$(".form-item-omega-layout .omega-layout-icon",context).click(function(){$(this).siblings(".form-item").find("input").click().change()})}};Drupal.behaviors.omegaExtensionSummary={attach:function(context){$("fieldset[id^=edit-].omega-extension",context).each(function(){var extension=$(this).attr("id").substring(5);var $fieldset=$(this);var $checkbox=$fieldset.find('input[name="omega_toggle_extension_'+extension+'"]');$fieldset.drupalSetSummary(function(){if(!$checkbox.is(":checked")){return Drupal.t("This extension is currently disabled")}});$checkbox.change(function(){$fieldset.trigger("summaryUpdated")})})}}}(jQuery); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.indicator.js --- a/sites/all/themes/omega/js/omega.indicator.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -(function ($) { - - 'use strict'; - - /** - * Renders a widget for displaying the current width of the browser. - */ - Drupal.behaviors.omegaBrowserWidth = { - attach: function (context) { - $('body', context).once('omega-browser-width', function () { - var $indicator = $('
').appendTo(this); - - // Bind to the window.resize event to continuously update the width. - $(window).bind('resize.omega-browser-width', function () { - $indicator.text($(this).width() + 'px'); - }).trigger('resize.omega-browser-width'); - }); - } - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.indicator.min.js --- a/sites/all/themes/omega/js/omega.indicator.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($){"use strict";Drupal.behaviors.omegaBrowserWidth={attach:function(context){$("body",context).once("omega-browser-width",function(){var $indicator=$('
').appendTo(this);$(window).bind("resize.omega-browser-width",function(){$indicator.text($(this).width()+"px")}).trigger("resize.omega-browser-width")})}}}(jQuery); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.mediaqueries.js --- a/sites/all/themes/omega/js/omega.mediaqueries.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -(function ($, window, Drupal) { - - 'use strict'; - - /** - * Toggles media-query specific body classes. - * - * You can define new media queries to listen to by writing them into the - * Drupal.settings.omegaSettings.mediaQueries array. - */ - Drupal.behaviors.omegaMediaQueryClasses = { - handler: function (name, mql) { - if (mql.matches) { - $('body').removeClass(name + '-inactive').addClass(name + '-active'); - } - else { - $('body').removeClass(name + '-active').addClass(name + '-inactive'); - } - }, - - attach: function (context, settings) { - var behavior = this; - var omegaSettings = settings.omega || {}; - var mediaQueries = omegaSettings.mediaQueries || {}; - - $('body', context).once('omega-mediaqueries', function () { - $.each(mediaQueries, function (index, value) { - var mql = window.matchMedia(value); - - // Initially, check if the media query applies or not and add the - // corresponding class to the body. - behavior.handler(index, mql); - - // React to media query changes and toggle the class names. - mql.addListener(function (mql) { - behavior.handler(index, mql); - }); - }); - }); - } - }; - -})(jQuery, window, Drupal); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.mediaqueries.min.js --- a/sites/all/themes/omega/js/omega.mediaqueries.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($,window,Drupal){"use strict";Drupal.behaviors.omegaMediaQueryClasses={handler:function(name,mql){if(mql.matches){$("body").removeClass(name+"-inactive").addClass(name+"-active")}else{$("body").removeClass(name+"-active").addClass(name+"-inactive")}},attach:function(context,settings){var behavior=this;var omegaSettings=settings.omega||{};var mediaQueries=omegaSettings.mediaQueries||{};$("body",context).once("omega-mediaqueries",function(){$.each(mediaQueries,function(index,value){var mql=window.matchMedia(value);behavior.handler(index,mql);mql.addListener(function(mql){behavior.handler(index,mql)})})})}}}(jQuery,window,Drupal); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.messages.js --- a/sites/all/themes/omega/js/omega.messages.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -(function ($, Drupal) { - - 'use strict'; - - /** - * Adds a 'close' link on messages that allows them to be discarded. - */ - Drupal.behaviors.omegaCloseableMessages = { - attach: function (context) { - $('.messages', context).once('closeable-messages', function () { - $('').click(function () { - $(this).closest('.messages').fadeOut(function () { - $(this).remove(); - }); - - return false; - }).appendTo(this); - }); - } - }; - -})(jQuery, Drupal); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/js/omega.messages.min.js --- a/sites/all/themes/omega/js/omega.messages.min.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -!function($,Drupal){"use strict";Drupal.behaviors.omegaCloseableMessages={attach:function(context){$(".messages",context).once("closeable-messages",function(){$('').click(function(){$(this).closest(".messages").fadeOut(function(){$(this).remove()});return false}).appendTo(this)})}}}(jQuery,Drupal); \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/layouts/simple/preview.png Binary file sites/all/themes/omega/layouts/simple/preview.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/layouts/simple/simple-layout.tpl.php --- a/sites/all/themes/omega/layouts/simple/simple-layout.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -
- - -
-
- - - - - -

- - - - - - - - - - -
- - - -
- -
- -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/layouts/simple/simple.layout.inc --- a/sites/all/themes/omega/layouts/simple/simple.layout.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -name = Simple -description = A simple 3 column layout demonstrating mobile first and Susy. -preview = preview.png -template = simple-layout - -; Regions -regions[header] = Header -regions[navigation] = Navigation bar -regions[highlighted] = Highlighted -regions[help] = Help -regions[content] = Content -regions[sidebar_first] = First sidebar -regions[sidebar_second] = Second sidebar -regions[footer] = Footer - -; Stylesheets -stylesheets[all][] = css/layouts/simple/simple.layout.css diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/libraries.make --- a/sites/all/themes/omega/libraries.make Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; ############################################################################## -; -; This is a Drush make file that will automatically download the front-end -; libraries used by Omega. Alternatively, you can use Bower (http://bower.io) to -; accomplish this. -; -; To run this file with 'drush make' you first have to navigate into the Omega -; theme directory. -; -; $ cd sites/all/themes/omega -; -; Now you can invoke 'drush make' using the following command: -; -; $ drush make libraries.make --no-core --contrib-destination=. -; -; ############################################################################## - -core = 7.x -api = 2 - -libraries[selectivizr][download][type] = "file" -libraries[selectivizr][download][url] = "https://github.com/fubhy/selectivizr/archive/master.zip" - -libraries[html5shiv][download][type] = "file" -libraries[html5shiv][download][url] = "https://github.com/fubhy/html5shiv/archive/master.zip" - -libraries[respond][download][type] = "file" -libraries[respond][download][url] = "https://github.com/fubhy/respond/archive/master.zip" - -libraries[matchmedia][download][type] = "file" -libraries[matchmedia][download][url] = "https://github.com/fubhy/matchmedia/archive/master.zip" - -libraries[pie][download][type] = "file" -libraries[pie][download][url] = "https://github.com/fubhy/pie/archive/master.zip" diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/logo.png Binary file sites/all/themes/omega/logo.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/omega.info --- a/sites/all/themes/omega/omega.info Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -name = Omega -description = A powerful HTML5 base theme framework utilizing tools like Sass, Compass, Grunt, Bower, Ruby Version Manager, Bundler and more. -screenshot = screenshot.png -engine = phptemplate -core = 7.x - -regions[header] = Header -regions[navigation] = Navigation -regions[highlighted] = Highlighted -regions[help] = Help -regions[content] = Content -regions[sidebar_first] = First Sidebar -regions[sidebar_second] = Second Sidebar -regions[footer] = Footer - -plugins[panels][layouts] = panels/layouts -plugins[panels][styles] = panels/styles - -; Information added by drupal.org packaging script on 2013-08-17 -version = "7.x-4.0-beta7" -core = "7.x" -project = "omega" -datestamp = "1376780189" - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/package.json --- a/sites/all/themes/omega/package.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -{ - "name": "omega", - "version": "1.0.0", - "dependencies": {}, - "devDependencies": { - "grunt": "~0.4.0", - "grunt-contrib-watch": "~0.4.3", - "grunt-contrib-compass": "~0.2.0", - "grunt-contrib-jshint": "~0.1.1", - "grunt-contrib-uglify": "~0.2.0" - }, - "engines": { - "node": ">=0.8.0" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/block-admin-display-form.preprocess.inc --- a/sites/all/themes/omega/preprocess/block-admin-display-form.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - $title) { - drupal_add_tabledrag('blocks', 'match', 'sibling', 'block-region-select', 'block-region-' . $region, NULL, FALSE); - drupal_add_tabledrag('blocks', 'order', 'sibling', 'block-weight', 'block-weight-' . $region); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/block.preprocess.inc --- a/sites/all/themes/omega/preprocess/block.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,116 +0,0 @@ -module); - $variables['attributes_array']['class'] = preg_replace('/^block-' . $css_module . '$/', 'block--' . $css_module, $variables['attributes_array']['class']); - $variables['attributes_array']['class'] = preg_replace('/^block-menu$/', 'block--menu', $variables['attributes_array']['class']); - - $variables['title_attributes_array']['class'][] = 'block__title'; - - $variables['content_attributes_array']['class'][] = 'block__content'; - - // Add template suggestions to appropriate blocks. - switch ($variables['block']->module) { - case 'system': - switch ($variables['block']->delta) { - case 'help': - case 'powered-by': - break; - - case 'main': - // Use a template with no wrapper for the page's main content. - $variables['theme_hook_suggestions'][] = 'block__minimal'; - break; - - default: - // Any other "system" block is a menu block and should use block--nav.tpl.php - $variables['theme_hook_suggestions'][] = 'block__nav'; - break; - } - break; - - case 'menu': - case 'menu_block': - // Use block--nav.tpl.php template. - $variables['theme_hook_suggestions'][] = 'block__nav'; - break; - } - - // Add Aria Roles via attributes. - switch ($variables['block']->module) { - case 'system': - switch ($variables['block']->delta) { - case 'main': - // Note: the "main" role goes in the page.tpl, not here. - break; - - case 'help': - case 'powered-by': - $variables['attributes_array']['role'] = 'complementary'; - break; - - default: - // Any other "system" block is a menu block. - $variables['attributes_array']['role'] = 'navigation'; - break; - } - break; - - case 'menu': - case 'menu_block': - case 'blog': - case 'book': - case 'comment': - case 'forum': - case 'shortcut': - case 'statistics': - $variables['attributes_array']['role'] = 'navigation'; - break; - - case 'search': - $variables['attributes_array']['role'] = 'search'; - break; - - case 'help': - case 'aggregator': - case 'locale': - case 'poll': - case 'profile': - $variables['attributes_array']['role'] = 'complementary'; - break; - - case 'node': - switch ($variables['block']->delta) { - case 'syndicate': - $variables['attributes_array']['role'] = 'complementary'; - break; - - case 'recent': - $variables['attributes_array']['role'] = 'navigation'; - break; - } - break; - - case 'user': - switch ($variables['block']->delta) { - case 'login': - $variables['attributes_array']['role'] = 'form'; - break; - - case 'new': - case 'online': - $variables['attributes_array']['role'] = 'complementary'; - break; - } - break; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/comment-wrapper.preprocess.inc --- a/sites/all/themes/omega/preprocess/comment-wrapper.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - $comment)) : ''; - // Add a sub component class for the comment content. - $variables['content_attributes_array']['class'][] = 'comment__content'; - // Add a sub component class to the comment links. - $variables['content']['links']['#attributes']['class'][] = 'comment__links'; - // Change modifier classes to use BEM syntax. - $variables['classes_array'] = preg_replace('/^comment-new$/', 'comment--new', $variables['classes_array']); - $variables['classes_array'] = preg_replace('/^comment-by-viewer$/', 'comment--by-viewer', $variables['classes_array']); - $variables['classes_array'] = preg_replace('/^comment-by-node-author$/', 'comment--by-node-author', $variables['classes_array']); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/field.preprocess.inc --- a/sites/all/themes/omega/preprocess/field.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - 'profile', - 'href' => $variables['grddl_profile'], - )); - - // Serialize RDF Namespaces into an RDFa 1.1 prefix attribute. - if ($variables['rdf_namespaces']) { - $prefixes = array(); - foreach (explode("\n ", ltrim($variables['rdf_namespaces'])) as $namespace) { - // Remove xlmns: and ending quote and fix prefix formatting. - $prefixes[] = str_replace('="', ': ', substr($namespace, 6, -1)); - } - $variables['rdf_namespaces'] = ' prefix="' . implode(' ', $prefixes) . '"'; - } - - // Classes for body element. Allows advanced theming based on context - // (home page, node of certain type, etc.). - if (!$variables['is_front']) { - // Add unique class for each page. - $path = drupal_get_path_alias($_GET['q']); - // Add unique class for each section of the website. - list($section, ) = explode('/', $path, 2); - $arg = explode('/', $_GET['q']); - - if ($arg[0] == 'node' && isset($arg[1])) { - if ($arg[1] == 'add') { - $section = 'node-add'; - } - elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) { - $section = 'node-' . $arg[2]; - } - } - - $variables['attributes_array']['class'][] = drupal_html_class('section-' . $section); - } - - // Add some styles in case the Omega theme is the active theme. - if ($GLOBALS['theme'] == 'omega') { - _omega_preprocess_html($variables); - } -} - -/** - * Helper function for loading theme assets in case 'Omega' is the active theme. - * - * @see omega_preprocess_html() - */ -function _omega_preprocess_html(&$variables) { - // @todo -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/links.preprocess.inc --- a/sites/all/themes/omega/preprocess/links.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - $name) { - if (!isset($variables['page'][$region])) { - $variables['page'][$region] = array(); - } - } - - $original = system_region_list($GLOBALS['theme_key'], REGIONS_VISIBLE); - foreach (array_diff_key($original, $layout['info']['regions']) as $region => $name) { - unset($variables['page'][$region]); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/poll-results.preprocess.inc --- a/sites/all/themes/omega/preprocess/poll-results.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - 'links', - '#links' => $variables['raw_links'], - '#attributes' => array('class' => array('links', 'poll-results__links')), - ); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/region.preprocess.inc --- a/sites/all/themes/omega/preprocess/region.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -style_plugin->options; - $columns = $options['columns']; - foreach ($variables['rows'] as $delta => $row) { - $variables['row_attributes_array'][$delta] = isset($variables['row_attributes_array'][$delta]) ? $variables['row_attributes_array'][$delta] : array(); - - if (!empty($variables['row_classes'][$delta])) { - $variables['row_attributes_array'][$delta]['class'] = explode(' ', $variables['row_classes'][$delta]); - } - - // Views tables have additional classes for each column. - for ($column = 0; $column < $columns; $column++) { - $variables['column_attributes_array'][$delta][$column] = isset($variables['column_attributes_array'][$delta][$column]) ? $variables['column_attributes_array'][$delta][$column] : array(); - - if (!empty($variables['column_classes'][$delta][$column])) { - $variables['column_attributes_array'][$delta][$column]['class'] = explode(' ', $variables['column_classes'][$delta][$column]); - } - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/views/views-view-list.preprocess.inc --- a/sites/all/themes/omega/preprocess/views/views-view-list.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - $row) { - $variables['row_attributes_array'][$delta] = isset($variables['row_attributes_array'][$delta]) ? $variables['row_attributes_array'][$delta] : array(); - - if (!empty($variables['classes_array'][$delta])) { - $variables['row_attributes_array'][$delta]['class'] = explode(' ', $variables['classes_array'][$delta]); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/views/views-view-table.preprocess.inc --- a/sites/all/themes/omega/preprocess/views/views-view-table.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ - $row) { - $variables['row_attributes_array'][$delta] = isset($variables['row_attributes_array'][$delta]) ? $variables['row_attributes_array'][$delta] : array(); - - if (!empty($variables['row_classes'][$delta])) { - $variables['row_attributes_array'][$delta]['class'] = $variables['row_classes'][$delta]; - } - - // Views tables have additional classes for each table column. - foreach ($row as $field => $content) { - $variables['field_attributes_array'][$field][$delta] = isset($variables['field_attributes_array'][$field][$delta]) ? $variables['field_attributes_array'][$field][$delta] : array(); - - if (!empty($variables['field_classes'][$field][$delta])) { - $variables['field_attributes_array'][$field][$delta]['class'] = explode(' ', $variables['field_classes'][$field][$delta]); - } - } - } - - // Views tables have additional classes for each header column. - foreach ($variables['header'] as $field => $label) { - $variables['header_attributes_array'][$field] = isset($variables['header_attributes_array'][$field]) ? $variables['header_attributes_array'][$field] : array(); - - if (!empty($variables['header_classes'][$field])) { - $variables['header_attributes_array'][$field]['class'] = explode(' ', $variables['header_classes'][$field]); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/preprocess/views/views-view-unformatted.preprocess.inc --- a/sites/all/themes/omega/preprocess/views/views-view-unformatted.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - $row) { - $variables['row_attributes_array'][$delta] = isset($variables['row_attributes_array'][$delta]) ? $variables['row_attributes_array'][$delta] : array(); - - if (!empty($variables['classes_array'][$delta])) { - $variables['row_attributes_array'][$delta]['class'] = explode(' ', $variables['classes_array'][$delta]); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/process/block.process.inc --- a/sites/all/themes/omega/process/block.process.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -subject. - $variables['title'] = $variables['block']->subject; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/process/comment-wrapper.process.inc --- a/sites/all/themes/omega/process/comment-wrapper.process.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -style_plugin->options; - $columns = $options['columns']; - foreach ($variables['rows'] as $delta => $row) { - // Convert the previously set row attributes arrays into strings. - $variables['row_attributes'][$delta] = !empty($variables['row_attributes_array'][$delta]) ? drupal_attributes($variables['row_attributes_array'][$delta]) : ''; - - for ($column = 0; $column < $columns; $column++) { - // Convert the previously set column attributes arrays into strings. - $variables['column_attributes'][$delta][$column] = !empty($variables['column_attributes_array'][$delta][$column]) ? drupal_attributes($variables['column_attributes_array'][$delta][$column]) : ''; - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/process/views/views-view-list.process.inc --- a/sites/all/themes/omega/process/views/views-view-list.process.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - $item) { - // Convert the previously set row attributes arrays into strings. - $variables['row_attributes'][$delta] = !empty($variables['row_attributes_array'][$delta]) ? drupal_attributes($variables['row_attributes_array'][$delta]) : ''; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/process/views/views-view-table.process.inc --- a/sites/all/themes/omega/process/views/views-view-table.process.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - $row) { - // Convert the previously set row attributes arrays into strings. - $variables['row_attributes'][$delta] = !empty($variables['row_attributes_array'][$delta]) ? drupal_attributes($variables['row_attributes_array'][$delta]) : ''; - - foreach ($row as $field => $content) { - // Convert the previously set field attributes arrays into strings. - $variables['field_attributes'][$field][$delta] = !empty($variables['field_attributes_array'][$field][$delta]) ? drupal_attributes($variables['field_attributes_array'][$field][$delta]) : ''; - } - } - - foreach ($variables['header'] as $field => $label) { - // Convert the previously set header attributes arrays into strings. - $variables['header_attributes'][$field] = !empty($variables['header_attributes_array'][$field]) ? drupal_attributes($variables['header_attributes_array'][$field]) : ''; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/process/views/views-view-unformatted.process.inc --- a/sites/all/themes/omega/process/views/views-view-unformatted.process.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - $item) { - // Convert the previously set row attributes arrays into strings. - $variables['row_attributes'][$delta] = !empty($variables['row_attributes_array'][$delta]) ? drupal_attributes($variables['row_attributes_array'][$delta]) : ''; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/layouts/simple/simple.layout.scss --- a/sites/all/themes/omega/sass/layouts/simple/simple.layout.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +0,0 @@ -/******************************************************************************* - * _layout.scss - * - * Styling of the "simple" layout demonstrating the Compass grid extension Susy - * and building mobile first layouts. - ******************************************************************************/ -@import "susy"; - -// Susy Variables - -// Set consistent vertical and horizontal spacing units. -$vert-spacing-unit: 20px; -$horz-spacing-unit: 1em; - -// Define Susy grid variables mobile first. -$total-columns: 4; -$column-width: 4em; -$gutter-width: $horz-spacing-unit; -$grid-padding: 5px; - -$container-style: magic; -$container-width: 1200px; - -// Susy Media Layouts @see http://susy.oddbird.net/guides/reference/#ref-media-layouts -$tab: 44em 12; // At 44em use 12 columns. -$desk: 70em 16; // At 70em use 16 columns. - -.l-header, -.l-main, -.l-footer { - @include container; // Define these elements as the grid containers. - // @include susy-grid-background; // Show the columns for debugging. - margin-bottom: $vert-spacing-unit; -} - -.l-region--highlighted, -.l-region--help, -.l-region--sidebar-first, -.l-region--sidebar-second { - margin-bottom: $vert-spacing-unit; -} - -@include at-breakpoint($tab) { // At a given Susy Media Layout, use a given amount of columns. - .l-header, - .l-main, - .l-footer { - @include set-container-width; // Reset only the container width (elements have already been declared as containers). - // @include susy-grid-background; // Show the columns for debugging. - } - - .l-branding { - @include span-columns(4, 12); // Span 4 out of 12 columns. - } - .l-region--header{ - @include span-columns(8 omega, 12); // Span the last (omega) 8 columns of 12. - } - .l-region--navigation { - clear: both; - } - - .sidebar-first, - .sidebar-second, - .two-sidebars { - .l-content { - @include span-columns(8, 12); // Span 8 out of 12 columns. - } - .l-region--sidebar-first, - .l-region--sidebar-second { - @include span-columns(4 omega, 12); // Span the last (omega) 4 columns of 12. - } - .l-region--sidebar-second { - clear: right; - } - } -} - -@include at-breakpoint($desk) { - .l-header, - .l-main, - .l-footer { - @include set-container-width; // Reset only the container width (elements have already been declared as containers). - // @include susy-grid-background; // Show the columns for debugging. - } - - .l-branding { - @include span-columns(6, 16); // Span 6 out of 16 columns. - } - .l-region--header{ - @include span-columns(10 omega, 16); // Span the last (omega) 10 columns of 16. - } - - .sidebar-first { - .l-content { - @include span-columns(12 omega, 16); // Span the last (omega) 12 columns of 16. - } - .l-region--sidebar-first { - @include span-columns(4, 16); // Span 4 out of 16 columns. - } - } - .sidebar-second { - .l-content { - @include span-columns(12, 16); // Span 12 out of 16 columns. - } - .l-region--sidebar-second { - @include span-columns(4 omega, 16); // Span the last (omega) 12 columns of 16. - clear: none; - } - } - - .two-sidebars { - .l-content { - @include span-columns(8, 16); // Span 12 out of 16 columns. - @include push(4, 16); // Push element by adding 4 out of 16 columns of left margin. - } - .l-region--sidebar-first, - .l-region--sidebar-second { - @include span-columns(4, 16); // Span 4 out of 16 columns. - } - .l-region--sidebar-first { - @include pull(12, 16); // Pull element by adding 12 out of 16 columns of negative left margin. - } - .l-region--sidebar-second { - @include omega; // This element spans the last (omega) column. - clear: none; - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/aggregator/aggregator.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/aggregator/aggregator.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Aggregator theme CSS for right to left languages. - */ - -.feed-source .feed-icon { - float: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/aggregator/aggregator.theme.scss --- a/sites/all/themes/omega/sass/modules/aggregator/aggregator.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Aggregator theme CSS. - */ - -.feed-source .feed-icon { - float: right; /* LTR */ - display: block; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/block/block.admin.scss --- a/sites/all/themes/omega/sass/modules/block/block.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Styles for the block admin page. - */ -.blocks-admin { - .region-title { - font-weight: bold; - } - .region-message { - font-weight: normal; - color: #999; - } - .region-populated { - display: none; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/block/block.demo.scss --- a/sites/all/themes/omega/sass/modules/block/block.demo.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/** - * @file - * Styles for the block demo page. - */ - -@import "compass"; - -.block-region { - margin-top: 4px; - margin-bottom: 4px; - padding: 3px; - background-color: #ff6; -} -.block-demo-backlink, -.block-demo-backlink:link, -.block-demo-backlink:visited { - /* Position */ - position: fixed; - z-index: 499; - left: 20px; /* LTR */ - /* Box Model */ - padding: 5px 10px; - /* Font */ - color: #000; - font-family: "Lucida Grande", Verdana, sans-serif; - font-size: small; - line-height: 20px; - /* Other Declarations */ - background-color: #B4D7F0; - @include border-radius(0 0 10px 10px); -} -.block-demo-backlink:hover { - text-decoration: underline; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/book/book.admin.scss --- a/sites/all/themes/omega/sass/modules/book/book.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -/** - * @file - * Administration styles for the Book module. - */ -/** - * Book outline on book edit form. - */ -.js .book-outline-form .form-submit { - display: none; -} -/** - * Book form for administering a single book's hierarchy. - */ -.book-admin-edit select { - margin-right: 24px; -} -.book-admin-edit .progress-disabled { - margin-right: 0; -} -.book-admin-edit .ajax-new-content { - background-color: #ffd; -} -.book-admin-edit .form-item { - float: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/book/book.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/book/book.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Basic default book structural CSS for right to left languages. - */ -.book-navigation__previous { - float: right; - text-align: right; -} -.book-navigation__up { - float: right; -} -.book-navigation__next { - float: left; - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/book/book.theme.scss --- a/sites/all/themes/omega/sass/modules/book/book.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -/** - * @file - * Basic theming for the book navigation component. - */ -.book-navigation__previous { - float: left; /* LTR */ - display: block; - width: 45%; - text-align: left; /* LTR */ -} -.book-navigation__up { - float: left; /* LTR */ - display: block; - width: 10%; - text-align: center; -} -.book-navigation__next { - float: right; /* LTR */ - display: block; - width: 45%; - text-align: right; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/color/color.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/color/color.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/** - * @file - * Right-to-left specific stylesheet for the Color module. - */ - -#placeholder { - left: 0; - right: auto; -} - -/* Palette */ -.color-form .form-item { - padding-left: 0; - padding-right: 1em; -} -.color-form label { - float: right; - clear: right; -} -.color-form .form-text, -.color-form .form-select { - float: right; -} -.color-form .form-text { - margin-right: 0; - margin-left: 5px; -} -#palette .hook { - float: right; -} -#palette .down, -#palette .up, -#palette .both { - background: image-url('modules/color/hook-rtl.png') no-repeat 0 0; -} -#palette .up { - background-position: 0 -27px; -} -#palette .both { - background-position: 0 -54px; -} -#palette .lock { - float: right; - right: -10px; -} -html.js #preview { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/color/color.admin.scss --- a/sites/all/themes/omega/sass/modules/color/color.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -/** - * @file - * Stylesheet for the administration pages of the Color module. - */ - -/* Farbtastic placement */ -.color-form { - max-width: 50em; - position: relative; -} -#placeholder { - position: absolute; - top: 0; - right: 0; /* LTR */ -} - -/* Palette */ -.color-form .form-item { - height: 2em; - line-height: 2em; - padding-left: 1em; /* LTR */ - margin: 0.5em 0; -} -.color-form label { - float: left; /* LTR */ - clear: left; /* LTR */ - width: 10em; -} -.color-form .form-text, -.color-form .form-select { - float: left; /* LTR */ -} -.color-form .form-text { - text-align: center; - margin-right: 5px; /* LTR */ - cursor: pointer; -} - -#palette .hook { - float: left; /* LTR */ - margin-top: 3px; - width: 16px; - height: 16px; -} -#palette .down, -#palette .up, -#palette .both { - background: image-url('modules/color/hook.png') no-repeat 100% 0; /* LTR */ -} -#palette .up { - background-position: 100% -27px; /* LTR */ -} -#palette .both { - background-position: 100% -54px; /* LTR */ -} - -#palette .lock { - float: left; /* LTR */ - position: relative; - top: -1.4em; - left: -10px; /* LTR */ - width: 20px; - height: 25px; - background: image-url('modules/color/lock.png') no-repeat 50% 2px; - cursor: pointer; -} -#palette .unlocked { - background-position: 50% -22px; -} -#palette .form-item { - width: 20em; -} -#palette .item-selected { - background: #eee; -} - -/* Preview */ -#preview { - display: none; -} -html.js #preview { - display: block; - position: relative; - float: left; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/comment/comment.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/comment/comment.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Right-to-left comment module look and feel styling. - */ - -.indented { - margin-left: 0; - margin-right: 25px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/comment/comment.theme.scss --- a/sites/all/themes/omega/sass/modules/comment/comment.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Comment module look and feel styling. - */ - -.indented { - margin-left: 25px; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/contextual/contextual.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/contextual/contextual.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ - -/** - * Contextual links structure. - */ -.contextual-links-wrapper { - left: 5px; - right: auto; -} -.contextual-links-trigger { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/contextual/contextual.base.scss --- a/sites/all/themes/omega/sass/modules/contextual/contextual.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ - -/** - * Contextual links behaviour. - */ -.contextual-links-wrapper, -.contextual-links-trigger, -.contextual-links { - display: none !important; -} -html.js .contextual-links-wrapper, -.contextual-links-region:hover .contextual-links-trigger, -.contextual-links-active .contextual-links-trigger, -.contextual-links-active .contextual-links { - display: block !important; -} - -/** - * Contextual links structure. - */ -.contextual-links-region { - outline: none; - position: relative; -} -.contextual-links-wrapper { - position: absolute; - z-index: 999; - right: 5px; /* LTR */ - top: 2px; -} -.contextual-links-trigger { - overflow: hidden; - text-align: right; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/contextual/contextual.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/contextual/contextual.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Styling for contextual links look and feel. - */ - -@import "compass"; - -/** - * Contextual links. - */ -.contextual-links { - left: 0; - right: auto; - @include border-radius(0 4px 4px 4px); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/contextual/contextual.theme.scss --- a/sites/all/themes/omega/sass/modules/contextual/contextual.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/** - * @file - * Styling for contextual links look and feel. - * - * We are proactivly making use of !important to ensure the contextual links - * styling isn't broken by unspecific selectors such as ".block a". In order to - * change the styling of the contextual links you should overwrite this file in - * your subtheme. - */ - -@import "compass"; - -/** - * Contextual link wrappers - */ -.contextual-links-region-active { - outline: #999 dashed 1px; -} -.contextual-links-wrapper { - font-size: 12px !important; - - a { - text-decoration: none; - } -} - -/** - * Contextual trigger. -*/ -.contextual-links-trigger { - /* Positioning */ - height: 18px; - /* Box Model */ - margin: 0 !important; - padding: 0 2px !important; - width: 28px; - /* Other Declarations */ - background: transparent image-url('modules/contextual/gear-select.png') no-repeat 2px 0 !important; - border: 1px solid transparent !important; - @include border-radius(4px); - outline: none; - text-indent: 9999px; /* LTR */ -} -.contextual-links-trigger:hover, -.contextual-links-active .contextual-links-trigger { - background-position: 2px -18px !important; -} -.contextual-links-active .contextual-links-trigger { - /* Positioning */ - position: relative; - z-index: 1; - /* Other Declarations */ - background-color: #fff !important; - border-color: #ccc !important; - border-bottom: none !important; - @include border-bottom-radius(0); -} - -/** - * Contextual links. - */ -.contextual-links { - /* Position */ - position: absolute; - right: 0; /* LTR */ - top: 18px; - /* Box Model */ - margin: 0 !important; - padding: 0 !important; - /* Other Declarations */ - background-color: #fff !important; - border: 1px solid #ccc !important; - @include border-radius(4px 0 4px 4px); /* LTR */ - text-align: left; - white-space: nowrap; - - li { - margin: 0 !important; - padding: 0 !important; - line-height: 100%; - list-style: none; - list-style-image: none; - } - - a { - display: block; - margin: 0 !important; - padding: 5px 10px !important; - color: #333 !important; - font-size: 12px !important; - - &:hover { - background-color: #bfdcee !important; - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/field/field.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/field/field.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ - -/** - * Field display. - */ -.field--label-inline { - .field__label, - .field__items { - float: right; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/field/field.theme.scss --- a/sites/all/themes/omega/sass/modules/field/field.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/** - * @file - * Styling for contextual links behaviour and structure. - */ - -/** - * Field display. - */ -.field__label { - font-weight: bold; -} -.field--label-inline { - .field__label, - .field__items { - float: left; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/field_ui/field_ui.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/field_ui/field_ui.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Right-to-left specific stylesheet for the Field UI module. - */ - -/** - *'Manage fields' and 'Manage display' overviews. - */ -.field-ui-overview { - /* Add New Row */ - .add-new .label-input { - float: right; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/field_ui/field_ui.admin.scss --- a/sites/all/themes/omega/sass/modules/field_ui/field_ui.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/** - * @file - * Stylesheet for the Field UI module. - */ - -/** - *'Manage fields' and 'Manage display' overviews. - */ -.field-ui-overview { - /* Add New Row */ - .add-new { - td { - vertical-align: top; - } - .label-input { - float: left; /* LTR */ - } - .tabledrag-changed { - display: none; - } - .form-type-machine-name .description { - white-space: normal; - } - } - - /* Hidden Messages */ - .region-add-new-title { - display: none; - } - .region-populated { - display: none; - } -} - -/** - * 'Manage display' overview - */ -.field-display-overview { - .field-formatter-settings-editing td { - vertical-align: top; - } - .field-formatter-settings-editing .field-formatter-type { - display: none; - } -} -.field-ui-display-overview-form #edit-refresh { - display:none; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/file/file.theme.scss --- a/sites/all/themes/omega/sass/modules/file/file.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Admin stylesheet for file module. - */ - -/** - * Managed file element. - */ -.form-managed-file { - .progress-disabled { - float: none; - display: inline; - } - - .ajax-progress, - .throbber { - float: none; - } - - .ajax-progress-bar { - display: none; - width: 28em; - margin-top: 4px; - padding: 0; - - .bar { - margin: 0; - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/filter/filter.theme.scss --- a/sites/all/themes/omega/sass/modules/filter/filter.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -/** - * @file - * Styling for the filter module. - */ - -/** - * Top Level Wrapper - * Contains the form item being filtered, the filter format form item and - * formatting guidelines. - */ -.text-format-wrapper { - .form-item { - margin-bottom: 0; - } - .description { - margin-top: 0.5em; - } -} - -/* Filter Format Wrapper. */ -.filter-wrapper { - border-top: 0; - margin: 0; - - .form-item { - float: left; - padding: 0 0 0.5em 1.5em; - - label { - display: inline; - } - } -} - -/* More Information Link. */ -.filter-help { - float: right; - padding: 0 1.5em 0.5em; - - a { - background: transparent image-url('misc/help.png') right center no-repeat; - padding: 0 20px; - } -} - -/* Filter Guidelines */ -.filter-guidelines { - clear: left; - padding: 0 1.5em; -} - -/* Filter formatting tips. */ -.tips { - font-size: 0.9em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/forum/forum.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/forum/forum.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -/** - * @file - * Right-to-left styling for the Forum module. - */ - -.forum-icon { - float: right; - margin-left: 0; - margin-right: 0.4em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/forum/forum.theme.scss --- a/sites/all/themes/omega/sass/modules/forum/forum.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Styling for the Forum module. - */ - -/* Forum Status Icons */ -.forum-icon { - float: left; - width: 24px; - height: 24px; - margin-right: 0.4em; - background-image: image-url('modules/forum/forum-icons.png'); - background-repeat: no-repeat; - text-indent: -9999px; -} -.forum-icon--status-new { - background-position: -24px 0; -} -.forum-icon--status-hot { - background-position: -48px 0; -} -.forum-icon--status-hot-new { - background-position: -72px 0; -} -.forum-icon--status-sticky { - background-position: -96px 0; -} -.forum-icon--status-closed { - background-position: -120px 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/image/image.admin.scss --- a/sites/all/themes/omega/sass/modules/image/image.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/** - * @file - * Admin styles for the image module. - */ - -/** - * Image style configuration pages. - */ - -/* Add new effect form. */ -.image-style-new, -.image-style-new div { - display: inline; -} - -/* Image style columns. */ -.image-style-preview__col { - float: left; - top: 50%; - width: 48%; - padding-bottom: 2em; - text-align: center; -} - -/* Image style preview images. */ -.image-style-preview__preview-image { - margin: auto; - position: relative; -} -.preview-image__width { - position: absolute; - height: 2px; - left: -1px; - bottom: -6px; - border: 1px solid #666; - border-top: none; - - .dimension { - position: relative; - top: 4px; - } -} -.preview-image__height { - position: absolute; - right: -6px; - top: -1px; - width: 2px; - border: 1px solid #666; - border-left: none; - - .dimension { - position: absolute; - height: 2em; - top: 50%; - left: 10px; - margin-top: -1em; - } -} - -/** - * Image anchor form element. - */ -.image-anchor { - width: auto; - - .even, - .odd { - background: none; - } - - td { - border: 1px solid #CCC; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/image/image.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/image/image.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Right-to-left styling for the Forum module. - */ - -/** - * Image upload widget. - */ -.image-preview { - float: right; - padding: 0 0 10px 10px; -} -.image-widget-data { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/image/image.theme.scss --- a/sites/all/themes/omega/sass/modules/image/image.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -/** - * @file - * Styles for the image module. - */ - -/** - * Image upload widget. - */ -.image-preview { - float: left; /* LTR */ - padding: 0 10px 10px 0; /* LTR */ -} -.image-widget-data { - float: left; /* LTR */ - - .text-field { - width: auto; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/locale/locale.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/locale/locale.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -/** - * @file - * Right to left admin styles for the locale module. - */ - -.locale-translation-filter-form { - .form-item-language, - .form-item-translation, - .form-item-group { - float: right; - padding-left: .8em; - padding-right: 0; - } - .form-actions { - float: right; - padding: 3ex 1em 0 0; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/locale/locale.admin.scss --- a/sites/all/themes/omega/sass/modules/locale/locale.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -/** - * @file - * Admin styles for the locale module. - */ - -/* Untranslated locales. */ -.locale-untranslated { - font-style: normal; - text-decoration: line-through; -} - -/* Translations 'exposed' filter form. */ -.locale-translation-filter-form { - .form-item-language, - .form-item-translation, - .form-item-group { - float: left; /* LTR */ - padding-right: .8em; /* LTR */ - margin: 0.1em; - width: 15em; /* Opera 9 Fix. */ - } - .form-type-select select { - width: 100%; - } - .form-actions { - float: left; /* LTR */ - padding: 3ex 0 0 1em; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/openid/openid.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/openid/openid.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Right to left base styles for the Open ID module. - */ - -html.js .user-login-form .openid-link, -html.js .user-login .openid-link { - margin-right: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/openid/openid.base.scss --- a/sites/all/themes/omega/sass/modules/openid/openid.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Base styles for the Open ID module. - */ - -html.js .user-login-form .openid-link, -html.js .user-login .openid-link { - display: block; - margin-left: 0; /* LTR */ -} -html.js .user-login-form .form-item-openid-identifier, -html.js .user-login .form-item-openid-identifier { - display: none; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/openid/openid.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/openid/openid.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Right to left theme styles for the openid module. - */ - -.form-item-openid-identifier input { - padding-left: 0; - padding-right: 20px; - background-position: right 50%; -} - -.openid-links a { - padding: 0 1.5em 0 0; - background-position: right top; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/openid/openid.theme.scss --- a/sites/all/themes/omega/sass/modules/openid/openid.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Theme styles for the openid module. - */ - -.form-item-openid-identifier { - display: block; - - input { - padding-left: 20px; /* LTR */ - background-image: image-url('modules/openid/login-bg.png'); - background-position: left 50%; /* LTR */ - background-repeat: no-repeat; - } -} - -.openid-links { - li { - display: none; - margin: 0; - padding: 0; - list-style: none; - } - a { - padding: 0 0 0 1.5em; /* LTR */ - background-image: image-url('modules/openid/login-bg.png'); - background-position: left top; /* LTR */ - background-repeat: no-repeat; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/poll/poll.admin.scss --- a/sites/all/themes/omega/sass/modules/poll/poll.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Admin styles for the poll module. - */ - -/* Poll choice form on node form. */ -.poll-choice-table { - .form-text { - display: inline; - width: auto; - } - .choice-flag { - white-space: nowrap; - width: 4em; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/poll/poll.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/poll/poll.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * Right to left theme for the poll voting form and results display. - */ - -/* Poll Bars */ -.poll-bars__bar .foreground { - float: right; -} -.poll-bars__text { - text-align: right; -} -.poll-bars__percent { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/poll/poll.theme.scss --- a/sites/all/themes/omega/sass/modules/poll/poll.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/** - * @file - * Theme for the poll voting form and results display. - */ - -/** - * Poll Results - */ - -/* Poll Bars */ -.poll-bars__bar { - height: 1em; - margin: 1px 0; - background-color: #ddd; - - .foreground { - height: 1em; - float: left; /* LTR */ - background-color: #000; - } -} -.poll-bars__percent { - text-align: right; /* LTR */ -} - -/* Poll Total */ -.poll-results__total { - text-align: center; -} - -/** - * Poll Voting Form - */ -.poll-vote-form { - text-align: center; -} -.poll-vote-form__choices { - display: table; - margin: 0 auto; - text-align: left; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/search/search.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/search/search.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/** - * @file - * Right to left search module theme. - */ - -/** - * Search Results - */ -.search-result__snippet { - padding-left: 0; - padding-right: 1em; -} - -/** - * Advanced Search Form - */ -.search-advanced { - .criterion { - float: right; - margin-right: 0; - margin-left: 2em; - } - .action { - float: right; - clear: right; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/search/search.theme.scss --- a/sites/all/themes/omega/sass/modules/search/search.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/** - * @file - * Search module theme. - */ - -/** - * Search Results - */ -.search-result__snippet { - padding-left: 1em; /* LTR */ -} -.search-result__info { - font-size: 0.85em; -} - -/** - * Advanced Search Form - */ -.search-advanced { - .criterion { - float: left; /* LTR */ - margin-right: 2em; /* LTR */ - } - .action { - float: left; /* LTR */ - clear: left; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/adminlink/_adminlink.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/adminlink/_adminlink.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Administration styles for quick inline admin links. - */ - -small .admin-link:before { - content: '['; -} -small .admin-link:after { - content: ']'; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/adminpanel/_adminpanel.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/admin/adminpanel/_adminpanel.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/** - * @file - * Right to left administration style for administration blocks. - */ - -/* Admin Panels */ -.admin-panel { - .admin-panel__body { - padding-right: 1em; - } -} - -/* Admin Panel Page Layout */ -.admin { - .left { - float: right; - } - .right { - float: left; - } - .expert-link { - margin-left: 0; - margin-right: 1em; - padding-left: 0; - padding-right: 4px; - text-align: left; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/adminpanel/_adminpanel.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/adminpanel/_adminpanel.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Administration styles for the administration panels. - */ - -/* Admin Panels */ -.admin-panel { - .admin-panel__body { - padding-left: 1em; /* LTR */ - } -} - -/* Admin Panel Page Layout */ -.admin { - padding-top: 15px; - - .left { - float: left; /* LTR */ - width: 47%; - } - .right { - float: right; /* LTR */ - width: 47%; - } - .expert-link { - margin-right: 1em; /* LTR */ - padding-right: 4px; /* LTR */ - text-align: right; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/appearance/_appearance.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/admin/appearance/_appearance.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * @file - * Right to left administration styles for the appearance page. - */ - -/** - * Disabled/Enabled Theme Lists - */ - -/* Theme Selector Links */ -.theme-selector__operations { - li { - float: right; - } -} - -/* Theme Selector Enabled State */ -.theme-selector--enabled { - .theme-selector__info { - float: left; - } - .theme-selector__screenshot { - float: right; - } -} -/* Theme Selector Disabled State */ -.theme-selector--disabled { - float: right; - padding: 20px 20px 20px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/appearance/_appearance.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/appearance/_appearance.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +0,0 @@ -/** - * @file - * Administration styles for the appearance page. - */ - -/** - * Disabled/Enabled Theme Lists - */ -.system-themes-list { - margin-bottom: 20px; - - h2 { - margin: 0; - } -} -.system-themes-list--disabled { - padding-top: 20px; - border-top: 1px solid #cdcdcd; -} - -/** - * Theme Selector - */ -.theme-selector { - padding-top: 20px; - - h3 { - font-weight: normal; - } -} -/* Theme Selector Screenshot */ -.theme-selector__screenshot { - padding: 2px; - width: 294px; - height: 219px; - border: 1px solid #e0e0d8; - line-height: 219px; - text-align: center; -} -/* Theme Selector Incompatible Message */ -.theme-selector__incompatible { - margin-top: 10px; - font-weight: bold; -} -/* Theme Selector Links */ -.theme-selector__operations { - margin: 10px 0 0 0; - padding: 0; - - li { - float: left; /* LTR */ - margin: 0 1em 0 0; - list-style-type: none; - } -} -/* Theme Selector Default State */ -.theme-selector--default { - h3 { - font-weight: bold; - } - .theme-selector__screenshot { - border: 1px solid #aaa; - } -} -/* Theme Selector Enabled State */ -.theme-selector--enabled { - width: 820px; - - .theme-selector__info { - float: right; /* LTR */ - width: 500px; - } - h3 { - margin-top: 0; - } - .theme-selector__screenshot { - float: left; /* LTR */ - } -} -/* Theme Selector Disabled State */ -.theme-selector--disabled { - float: left; /* LTR */ - width: 300px; - padding: 20px 20px 20px 0; /* LTR */ - - .theme-selector__info { - min-height: 170px; - } - .theme-selector__screenshot { - width: 194px; - height: 144px; - line-height: 144px; - } -} - -/** - * Admin Theme Selector Form - */ -.system-themes-admin-form { - clear: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/compactlink/_compactlink.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/compactlink/_compactlink.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Administration styles for compact links. - */ - -.compact-link { - margin: 0 0 0.5em 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/modules/_modules.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/admin/modules/_modules.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -/** - * @file - * Right to left administration styles for the modules table. - */ - -/* Module Operation Links */ -.module-link { - padding: 1px 20px 1px 0; -} -.module-link-help { - background: image-url('misc/help.png') 0 50% no-repeat; /* LTR */ -} -.module-link-permissions { - background: image-url('misc/permissions.png') 0 50% no-repeat; /* LTR */ -} -.module-link-configure { - background: image-url('misc/configure.png') 0 50% no-repeat; /* LTR */ -} - -/* Module Help */ -.module-help { - float: left; - margin-left: 0; - margin-right: 1em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/modules/_modules.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/modules/_modules.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/** - * @file - * Administration styles for the modules table and help. - */ - -/* Module State Flags */ -.admin-disabled { - color: #800; -} -.admin-enabled { - color: #080; -} -.admin-missing { - color: #f00; -} - -/* Incompatible Modules */ -.incompatible { - font-weight: bold; -} - -/* Module Requirements */ -.admin-requirements, -.admin-required { - font-size: 0.9em; - color: #444; -} - -/* Module Operation Links */ -.module-link { - display: block; - padding: 1px 0 1px 20px; /* LTR */ - white-space: nowrap; -} -.module-link-help { - background: image-url('misc/help.png') 0 50% no-repeat; /* LTR */ -} -.module-link-permissions { - background: image-url('misc/permissions.png') 0 50% no-repeat; /* LTR */ -} -.module-link-configure { - background: image-url('misc/configure.png') 0 50% no-repeat; /* LTR */ -} - -/* Module Help */ -.module-help { - float: right; /* LTR */ - margin-left: 1em; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/statusreport/_statusreport.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/admin/statusreport/_statusreport.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right to left administration styles for the system status report. - */ - -.merge-up td { - padding: 0 28px 8px 6px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/statusreport/_statusreport.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/statusreport/_statusreport.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/** - * @file - * Administration styles for the system status report. - */ - -/* Status Icons */ -.system-status-report { - .status-icon { - height: 16px; - width: 16px; - background-repeat: no-repeat; - } - .error .status-icon { - background-image: image-url('misc/message-16-error.png'); - } - .warning .status-icon { - background-image: image-url('misc/message-16-warning.png'); - } -} - -/* Merge Cells */ -.merge-down, -.merge-down td { - border-bottom-width: 0 !important; -} - -.merge-up, -.merge-up td { - border-top-width: 0 !important; -} -.merge-up td { - padding: 0 6px 8px 28px; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/admin/themesettings/_themesettings.admin.scss --- a/sites/all/themes/omega/sass/modules/system/admin/themesettings/_themesettings.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Administration styles for the theme settings. - */ - -.theme-settings-left { - float: left; - width: 49%; -} -.theme-settings-right { - float: right; - width: 49%; -} -.theme-settings-bottom { - clear: both; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Right to left base styles for autocomplete functionality. - * - * @see autocomplete.js - */ - -/* Animated throbber */ -html.js .form-autocomplete { - background-position: 0% 2px; -} -html.js .throbbing { - background-position: 0% -18px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.base.scss --- a/sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -/** - * @file - * Base styles for autocomplete functionality. - * - * @see autocomplete.js - */ - -/* Suggestion list */ -#autocomplete { - position: absolute; - z-index: 100; - overflow: hidden; - - ul { - margin: 0; - padding: 0; - list-style: none; - list-style-image: none; - } - li { - cursor: default; - white-space: pre; - zoom: 1; /* IE7 */ - } -} - -/* Animated throbber */ -html.js .form-autocomplete { - background-image: image-url('misc/throbber.gif'); - background-position: 100% 2px; /* LTR */ - background-repeat: no-repeat; -} -html.js .throbbing { - background-position: 100% -18px; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.theme.scss --- a/sites/all/themes/omega/sass/modules/system/autocomplete/_autocomplete.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/** - * @file - * Theme for autocomplete. - * - * @see autocomplete.js - */ - -#autocomplete { - background: #fff; - border: 1px solid; - color: #000; - - .selected { - background: #0072b9; - color: #fff; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.base.scss --- a/sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -/** - * @file - * Base styles for collapsible fieldset functionality. - * - * @see collapse.js - */ - -html.js fieldset.collapsed { - height: 1em; -} -html.js fieldset.collapsed .fieldset-wrapper { - display: none; -} -fieldset.collapsible { - position: relative; -} -fieldset.collapsible .fieldset-legend { - display: block; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/** - * @file - * Right to left theme for collapsible fieldsets. - * - * @see collapse.js - */ - -html.js fieldset.collapsible .fieldset-legend { - padding-left: 0; - padding-right: 15px; - background-position: 98% 75%; -} -html.js fieldset.collapsed .fieldset-legend { - background-image: image-url('misc/menu-collapsed-rtl.png'); - background-position: 98% 50%; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.theme.scss --- a/sites/all/themes/omega/sass/modules/system/collapsible/_collapsible.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/** - * @file - * Theme for collapsible fieldsets. - * - * @see collapse.js - */ - -html.js fieldset.collapsible .fieldset-legend { - padding-left: 15px; /* LTR */ - background: image-url('misc/menu-expanded.png') 5px 65% no-repeat; /* LTR */ -} -html.js fieldset.collapsed { - border-bottom-width: 0; - border-left-width: 0; - border-right-width: 0; - - .fieldset-legend { - background-image: image-url('misc/menu-collapsed.png'); /* LTR */ - background-position: 5px 50%; /* LTR */ - } -} -.fieldset-legend .summary { - margin-left: 0.5em; - color: #999; - font-size: 0.9em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/elements/_elements.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/elements/_elements.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Basic right to left styling for common HTML elements. - */ - -/* Tables */ -th { - padding-left: 1em; - padding-right: 0; - text-align: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/elements/_elements.theme.scss --- a/sites/all/themes/omega/sass/modules/system/elements/_elements.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/** - * @file - * Basic styling for common HTML elements. - */ - -/* Fieldsets */ -fieldset { - margin-bottom: 1em; -} - -/* Tables */ -table { - border-collapse: collapse; -} -th { - padding-right: 1em; /* LTR */ - background-color: #bbb; - text-align: left; /* LTR */ -} -tr.even, -tr.odd { - background-color: #eee; -} -tr.odd { - background-color: #ddd; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/exposed/_exposed.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/exposed/_exposed.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/** - * Exposed filters. - */ -.exposed-filters .filters { - float: right; - margin-left: 1em; - margin-right: 0; -} -.exposed-filters .form-item label { - float: right; -} -/* Current filters */ -.exposed-filters .additional-filters { - float: right; - margin-left: 1em; - margin-right: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/exposed/_exposed.admin.scss --- a/sites/all/themes/omega/sass/modules/system/exposed/_exposed.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/** - * Exposed filters. - */ -.exposed-filters .filters { - float: left; /* LTR */ - margin-right: 1em; /* LTR */ - width: 25em; /* IE6 */ -} -.exposed-filters .form-item { - margin: 0 0 0.1em 0; - padding: 0; -} -.exposed-filters .form-item label { - float: left; /* LTR */ - width: 10em; - font-weight: normal; -} -.exposed-filters .form-select { - width: 14em; -} -/* Current filters */ -.exposed-filters .current-filters { - margin-bottom: 1em; -} -.exposed-filters .current-filters .placeholder { - font-style: normal; - font-weight: bold; -} -.exposed-filters .additional-filters { - float: left; /* LTR */ - margin-right: 1em; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/form/_form.theme.scss --- a/sites/all/themes/omega/sass/modules/system/form/_form.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/** - * @form - * Theme for markup generated by Form API. - */ - -/* Generic Form Items. */ -.form-item, -.form-actions { - margin-bottom: 1em; - - label { - display: block; - font-weight: bold; - } - .description { - font-size: 0.85em; - } -} - -/* Checkboxes and Radios */ -.form-checkboxes, -.form-radios { - .form-item { - margin-bottom: 0.4em; - } - .description { - margin-left: 2.4em; - } -} -label.option { - display: inline; - font-weight: normal; -} -.form-checkbox, -.form-radio { - vertical-align: middle; -} - -/* Errors */ -.marker, -.form-required { - color: #f00; -} -input.error, -textarea.error, -select.error { - border: 2px solid red; -} - -/* Table Form Items */ -tr .form-item { - margin-top: 0; - margin-bottom: 0; - white-space: nowrap; -} - -/* Inline Items */ -.container-inline .form-actions, -.container-inline.form-actions { - margin-top: 0; - margin-bottom: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/menus/_links.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/menus/_links.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -/** - * @file - * Inline links as generated by theme_links(). - */ - -ul.inline { - li { - float: right; - margin-right: 0; - margin-left: 1em; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/menus/_links.theme.scss --- a/sites/all/themes/omega/sass/modules/system/menus/_links.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -/** - * @file - * Inline links as generated by theme_links(). - */ - -@import "compass/utilities/general/clearfix"; - -.links--inline { - @include pie-clearfix; - list-style-type: none; - margin: 0; - padding: 0; - - li { - float: left; /* LTR */ - margin-right: 1em; /* LTR */ - - & > a { display: block; } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/menus/_localtasks.theme.scss --- a/sites/all/themes/omega/sass/modules/system/menus/_localtasks.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/** - * @file - * Theme styles for markup generated by theme_menu_local_tasks(). - */ - -/* Tabs */ -.tabs { - a { - background-color: #eee; - text-decoration: none; - - &.active { - background-color: #ccc; - } - &:hover, - &:focus { - background-color: #bbb; - } - } -} - -/* Primary Tabs */ -.tabs--primary { - margin-bottom: 1em; - border-bottom: 1px solid #bbb; - - a { - padding: 0.3em 0.8em; - } -} - -/* Secondary Tabs */ -.tabs--secondary a { - padding: 0.2em 0.5em; - margin: 0.4em 0; - font-size: 0.9em; -} \ No newline at end of file diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/menus/_menutree.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/menus/_menutree.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -/** - * @file - * Styles for a hierarchical menu as generated by theme_menu_tree(). - */ - -.menu { - text-align: right; - - /* Menu Item Hierarchy Modifiers */ - .collapsed { - list-style-image: image-url('misc/menu-collapsed-rtl.png'); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/menus/_menutree.theme.scss --- a/sites/all/themes/omega/sass/modules/system/menus/_menutree.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/** - * @file - * Styles for a hierarchical menu as generated by theme_menu_tree(). - */ - -.menu { - border: none; - list-style: none; - text-align: left; /* LTR */ - - /* Menu Item Hierarchy Modifiers */ - .expanded { - list-style-image: image-url('misc/menu-expanded.png'); - list-style-type: circle; - } - .collapsed { - list-style-image: image-url('misc/menu-collapsed.png'); /* LTR */ - list-style-type: disc; - } - .leaf { - list-style-image: image-url('misc/menu-leaf.png'); - list-style-type: square; - } -} - -/* Menu State Modifiers */ -.active { - color: #000; -} -.menu-disabled { - background: #ccc; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/morelink/_morelink.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/morelink/_morelink.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right to left theme for the more link. - */ - -.more-link { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/morelink/_morelink.theme.scss --- a/sites/all/themes/omega/sass/modules/system/morelink/_morelink.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Theme for more links. - */ - -.more-link { - display: block; - text-align: right; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/pager/_pager.theme.scss --- a/sites/all/themes/omega/sass/modules/system/pager/_pager.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -/** - * @file - * Theme for markup generated by theme_pager(). - */ - -.pager { - clear: both; - padding: 0; - text-align: center; -} -.pager__item { - display: inline; - padding: 0.5em; - background-image: none; - list-style-type: none; - -} -.pager__item--current { - font-weight: bold; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/progress/_progress.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/progress/_progress.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -/** - * @file - * Right to left base styles for the progress behavior. - * - * @see progress.js - */ - -/* Bar */ -.progress .percentage { - float: left; -} -.progress-disabled { - float: right; -} -.ajax-progress { - float: right; -} -.ajax-progress .throbber { - float: right; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/progress/_progress.base.scss --- a/sites/all/themes/omega/sass/modules/system/progress/_progress.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -/** - * @file - * Base styles for the progress behavior. - * - * @see progress.js - */ - -/* Bar */ -.progress { - .bar { - background-color: #fff; - border: 1px solid; - } - .filled { - height: 1.5em; - width: 5px; - background-color: #000; - } - .percentage { - float: right; /* LTR */ - } -} - -/* Throbber */ -.ajax-progress { - display: inline-block; - - .throbber { - float: left; /* LTR */ - height: 15px; - width: 15px; - margin: 2px; - background: transparent image-url('misc/throbber.gif') no-repeat 0px -18px; - } - .message { - padding-left: 20px; - } -} - -tr .ajax-progress .throbber { - margin: 0 2px; -} -.ajax-progress-bar { - width: 16em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/progress/_progress.theme.scss --- a/sites/all/themes/omega/sass/modules/system/progress/_progress.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/** - * @file - * Theme for the progress behavior. - * - * @see progress.js - */ -.progress { - font-weight: bold; - - .bar { - background: #ccc; - border-color: #666; - margin: 0 0.2em; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; - } - .filled { - background: #0072b9 image-url('misc/progress.gif'); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/resizable/_resizable.base.scss --- a/sites/all/themes/omega/sass/modules/system/resizable/_resizable.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -/** - * @file - * Base styles for the resizable textareas functionality. - * - * @see textarea.js - */ - -@import "compass"; - -.form-textarea-wrapper textarea { - display: block; - @include box-sizing(border-box); - width: 100%; - margin: 0; -} -.resizable-textarea .grippie { - height: 9px; - background: #eee image-url('misc/grippie.png') no-repeat center 2px; - border: 1px solid #ddd; - border-top-width: 0; - cursor: s-resize; - overflow: hidden; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/system.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -/** - * @file - * Right to left system wide administration styles. - */ - -@import "admin/adminpanel/adminpanel.admin-rtl"; -@import "admin/appearance/appearance.admin-rtl"; -@import "admin/modules/modules.admin-rtl"; -@import "admin/statusreport/statusreport.admin-rtl"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.admin.scss --- a/sites/all/themes/omega/sass/modules/system/system.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -/** - * @file - * System wide administration styles. - */ - -@import "admin/adminlink/adminlink.admin"; -@import "admin/adminpanel/adminpanel.admin"; -@import "admin/appearance/appearance.admin"; -@import "admin/compactlink/compactlink.admin"; -@import "admin/modules/modules.admin"; -@import "admin/statusreport/statusreport.admin"; -@import "admin/themesettings/themesettings.admin"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/system.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right to left system wide base styles. - */ - -@import "autocomplete/autocomplete.base-rtl"; -@import "tabledrag/tabledrag.base-rtl"; -@import "progress/progress.base-rtl"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.base.scss --- a/sites/all/themes/omega/sass/modules/system/system.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -/** - * @file - * System wide base styles. - */ - -@import "autocomplete/autocomplete.base"; -@import "collapsible/collapsible.base"; -@import "resizable/resizable.base"; -@import "tabledrag/tabledrag.base"; -@import "tableheader/tableheader.base"; -@import "progress/progress.base"; -@import "utilities/utilities.base"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.menus.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/system.menus.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/** - * @file - * Right to left menu and navigational styles. - */ - -@import "menus/menutree.theme-rtl"; -@import "menus/links.theme-rtl"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.menus.theme.scss --- a/sites/all/themes/omega/sass/modules/system/system.menus.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Menu and navigational styles. - */ - -@import "menus/menutree.theme"; -@import "menus/links.theme"; -@import "menus/localtasks.theme"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.messages.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/system.messages.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Right to left theme for for system messages. - */ - -/* Message */ -.messages { - padding: 10px 50px 10px 10px; - background-position: 99% 8px; - - ul { - margin: 0 1em 0 0; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.messages.theme.scss --- a/sites/all/themes/omega/sass/modules/system/system.messages.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/** - * @file - * Theme for for system messages. - */ - -/* Message */ -.messages { - margin: 6px 0; - padding: 10px 10px 10px 50px; /* LTR */ - background-position: 8px 8px; /* LTR */ - background-repeat: no-repeat; - border: 1px solid; - - ul { - margin: 0 0 0 1em; /* LTR */ - padding: 0; - } - li { - list-style-image: none; - } -} - -/* Status Messages */ -.messages--status { - background-image: image-url('misc/message-24-ok.png'); - border-color: #be7; -} -.messages--status, -tr.ok { - background-color: #f8fff0; -} -.messages--status, -.ok { - color: #234600; -} - -/* Warning Messages */ -.messages--warning { - background-image: image-url('misc/message-24-warning.png'); - border-color: #ed5; -} -.messages--warning, -tr.warning { - background-color: #fffce5; -} -.messages--warning, -.warning { - color: #333; -} - -/* Error Messages */ -.messages--error { - background-image: image-url('misc/message-24-error.png'); - border-color: #ed541d; -} -.messages--error, -tr.error { - background-color: #fef5f1; -} -.messages--error, -.error { - color: #333; -} - -.error /*p*/.error { - color: #8c2e0b; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/system.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -/** - * @file - * Right to left system wide theme styles. - */ - -@import "elements/elements.theme-rtl"; -@import "collapsible/collapsible.theme-rtl"; -@import "morelink/morelink.theme-rtl"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/system.theme.scss --- a/sites/all/themes/omega/sass/modules/system/system.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -/** - * @file - * System wide theme styles. - */ - -@import "elements/elements.theme"; -@import "autocomplete/autocomplete.theme"; -@import "collapsible/collapsible.theme"; -@import "tabledrag/tabledrag.theme"; -@import "progress/progress.theme"; -@import "tableselect/tableselect.theme"; -@import "form/form.theme"; -@import "tablesort/tablesort.theme"; -@import "morelink/morelink.theme"; -@import "pager/pager.theme"; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.base-rtl.scss --- a/sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.base-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/** - * @file - * Right to left base styling for the tabledrag behavior. - * - * @see tabledrag.js - */ - -.draggable .tabledrag-handle { - float: right; - margin-left: 0; -} -.indentation { - float: right; -} -.tree-child, -.tree-child-last { - background-position: -65px center; -} -.tabledrag-toggle-weight-wrapper { - text-align: left; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.base.scss --- a/sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -/** - * @file - * Base styling for the tabledrag behavior. - * - * @see tabledrag.js - */ - -body.drag { - cursor: move; -} -/* Tabledrag Handle */ -.tabledrag-handle { - float: left; /* LTR */ - overflow: hidden; - text-decoration: none; - cursor: move; - - .handle { - height: 15px; - width: 15px; - margin: -0.4em 0; - padding: 0.4em; - background: image-url('misc/draggable.png') no-repeat 6px 9px; - } - &:hover { - text-decoration: none; - } -} -.tabledrag-handle-hover .handle { - background-position: 6px -11px; -} - -/* Indentation */ -.indentation { - float: left; /* LTR */ - width: 20px; -} - -/* Tree Images */ -.tree-child { - background: image-url('misc/tree.png') no-repeat 12px center; /* LTR */ -} -.tree-child-last { - background: image-url('misc/tree-bottom.png') no-repeat 12px center; /* LTR */ -} -.tree-child-horizontal { - background: image-url('misc/tree.png') no-repeat -12px center; -} - -/* Toggle Weight Link */ -.tabledrag-toggle-weight-wrapper { - text-align: right; /* LTR */ -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.theme.scss --- a/sites/all/themes/omega/sass/modules/system/tabledrag/_tabledrag.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -/** - * @file - * Theme for the tabledrag behavior. - * - * @see tabledrag.js - */ - -.drag { - background-color: #fffff0; -} -.drag-previous { - background-color: #ffd; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tableheader/_tableheader.base.scss --- a/sites/all/themes/omega/sass/modules/system/tableheader/_tableheader.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Base styling for the tableheader behavior. - * - * @see tableheader.js - */ - -.sticky-header { - margin-top: 0; - background-color: #fff; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tableselect/_tableselect.theme.scss --- a/sites/all/themes/omega/sass/modules/system/tableselect/_tableselect.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -/** - * @file - * Theme for the tableselect behavior. - * - * @see tableselect.js -*/ - -.selected td { - background: #ffc; -} -.checkbox, -.checkbox { - text-align: center; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/tablesort/_tablesort.theme.scss --- a/sites/all/themes/omega/sass/modules/system/tablesort/_tablesort.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Theme for the markup generated by theme_tablesort_indicator(). - */ - -th.active img { - display: inline; -} -td.active { - background-color: #ddd; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/system/utilities/_utilities.base.scss --- a/sites/all/themes/omega/sass/modules/system/utilities/_utilities.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -/** - * @file - * System utility classes. - */ - -@import "compass/utilities/general/clearfix"; - -/** - * Inline items. - */ -.container-inline div, -.container-inline label { - display: inline; -} -/* Fieldset contents always need to be rendered as block. */ -.container-inline .fieldset-wrapper { - display: block; -} - -/** - * Prevent text wrapping. - */ -.nowrap { - white-space: nowrap; -} - -/** - * For anything you want to hide on page load when JS is enabled, so - * that you can use the JS to control visibility and avoid flicker. - */ -html.js .js-hide { - display: none; -} - -/** - * Hide elements from all users. - * - * Used for elements which should not be immediately displayed to any user. An - * example would be a collapsible fieldset that will be expanded with a click - * from a user. The effect of this class can be toggled with the jQuery show() - * and hide() functions. - */ -.element-hidden { - display: none; -} - -/** - * Hide elements visually, but keep them available for screen-readers. - * - * Used for information required for screen-reader users to understand and use - * the site where visual display is undesirable. Information provided in this - * manner should be kept concise, to avoid unnecessary burden on the user. - * "!important" is used to prevent unintentional overrides. - */ -.element-invisible { - position: absolute !important; - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - overflow: hidden; - height: 1px; -} - -/** - * The .element-focusable class extends the .element-invisible class to allow - * the element to be focusable when navigated to via the keyboard. - */ -.element-invisible.element-focusable:active, -.element-invisible.element-focusable:focus { - position: static !important; - clip: auto; - overflow: visible; - height: auto; -} - -/** - * Use the clearfix from Compass. - */ -.clearfix { - @include pie-clearfix; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/taxonomy/taxonomy.admin.scss --- a/sites/all/themes/omega/sass/modules/taxonomy/taxonomy.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -/** - * @file - * Administrative styling for the taxonomy module. - */ - -.taxonomy-term-divider-top { - border-bottom: none; -} -.taxonomy-term-divider-bottom { - border-top: 1px dotted #CCC; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/user/user.admin-rtl.scss --- a/sites/all/themes/omega/sass/modules/user/user.admin-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/** - * @file - * Right to left administrative styling for the user module. - */ -/** - * User Permissions Page - */ -.user-admin-permissions { - .permission { - padding-left: 0; - padding-right: 1.5em; - } -} - -/** - * User Roles Page - * - * Override default textfield float to put the "Add role" button next to - * the input textfield. - */ -.user-admin-roles { - .form-item-name { - float: right; - margin-left: 1em; - margin-right: 0; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/user/user.admin.scss --- a/sites/all/themes/omega/sass/modules/user/user.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/** - * @file - * Administrative styling for the user module. - */ -/** - * User Permissions Page - */ -.user-admin-permissions { - .module { - font-weight: bold; - } - .permission { - padding-left: 1.5em; /* LTR */ - } - .form-item { - white-space: normal; - } -} - -/** - * User Roles Page - * - * Override default textfield float to put the "Add role" button next to - * the input textfield. - */ -.user-admin-roles { - .edit-name { - clear: both; - } - .form-item-name { - float: left; /* LTR */ - margin-right: 1em; /* LTR */ - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/user/user.base.scss --- a/sites/all/themes/omega/sass/modules/user/user.base.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/** - * @file - * Base styles for the user module. - */ -div.password-confirm { - visibility: hidden; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/user/user.theme-rtl.scss --- a/sites/all/themes/omega/sass/modules/user/user.theme-rtl.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/** - * @file - * Right to left theme styling for the user module. - */ -/** - * Password Strength Indicator. - */ -.password-strength { - float: left; -} -.password-strength-title { - float: right; -} -.password-strength-text { - float: left; -} - -/** - * Password Confirm. - */ -.password-confirm { - float: left; -} - -/* - * User Profile - * - * Generated by user.module but used by profile.module. - */ -.profile .user-picture { - float: left; - margin: 0 0 1em 1em; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/modules/user/user.theme.scss --- a/sites/all/themes/omega/sass/modules/user/user.theme.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ -/** - * @file - * Theme styling for the user module. - */ -/** - * Password Strength Indicator. - */ -.password-strength { - float: right; /* LTR */ - margin-top: 1.2em; - width: 17em; -} -.password-strength-title { - float: left; /* LTR */ -} -.password-strength-text { - float: right; /* LTR */ - font-weight: bold; -} -.password-indicator { - clear: both; - height: 0.3em; - width: 100%; - background-color: #C4C4C4; - - .indicator { - height: 100%; - width: 0%; - background-color: #47C965; - } -} - -/** - * Password Confirm. - */ -div.password-confirm { - float: right; /* LTR */ - clear: both; - width: 17em; - margin-top: 1.5em; -} - -/** - * Password Confirm Inputs. - */ -.form-type-password-confirm input { - width: 16em; -} - -/** - * Password Suggestions. - */ -.password-suggestions { - margin: 0.7em 0; - padding: 0.2em 0.5em; - border: 1px solid #B4B4B4; -} - - -/* - * User Profile - */ -.user-profile-item__label { - font-weight: bold; -} - - - -/* Generated by user.module but used by profile.module. */ -.profile { - clear: both; - margin: 1em 0; - - .user-picture { - float: right; /* LTR */ - margin: 0 1em 1em 0; /* LTR */ - } - h3 { - border-bottom: 1px solid #ccc; - } - dl { - margin: 0 0 1.5em 0; - } - dt { - margin: 0 0 0.2em 0; - font-weight: bold; - } - dd { - margin: 0 0 1em 0; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/omega.admin.scss --- a/sites/all/themes/omega/sass/omega.admin.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -.form-item.form-item-omega-conditional-comments-html-options, -.form-item.form-item-omega-viewport-widget-minimal, -.omega-settings-container { - border: 1px solid #ccc; - margin-left: 18px; - margin-bottom: 12px; - padding: 9px 18px; - background-color: #f2f2f2; -} - -.fieldset-description { - margin-bottom: 15px; -} - -div.vertical-tabs .vertical-tabs-panes .vertical-tabs-pane fieldset { - border: 1px solid #CCC; - padding: 2.5em 0 0 0; - margin: 1em 0; - - legend { - display: block; - } -} - -.omega-assets-missing-files { - color: #8c2e0b; - margin: 1em 0 1em 1.5em; - - h3 { - font-size: .9em; - text-transform: uppercase; - margin-bottom: 0; - } -} - -.omega-layout-selection-wrapper { - margin-bottom: 20px; - min-height: 140px; - position: relative; - - .form-item { - label.option, - div.description { - padding-left: 130px; - } - } - - img { - height: 140px; - width: 120px; - position: absolute; - top: 8px; - margin-left: 1.5em; - } -} - -.form-item.form-item-omega-requirements { - border: 1px solid #ed541d; - color: #8c2e0b; - background-color: #fef5f1; - margin: 6px 0 16px; - padding: 10px; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/omega.development.scss --- a/sites/all/themes/omega/sass/omega.development.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -@import "rgbapng"; -@import "compass"; - -.omega-browser-width { - @include border-radius(5px); - @include rgba-background(rgba(0, 0, 0, 0.75)); - z-index: 1000; - position: fixed; - bottom: 0; - right: 0; - font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; - font-size: 13px; - color: #fff; - max-width: 100%; - margin: 5px; - padding: 5px 10px; -} - -.region--debug { - @include rgba-background(rgba(0, 0, 0, 0.1)); - position: relative; - min-height: 29px; - outline: 1px dashed #ccc; - - &:before { - @include border-radius(3px); - @include rgba-background(rgba(#077dc3, 0.75)); - font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; - font-size: 11px; - z-index: 50; - position: absolute; - right: 5px; - top: 5px; - padding: 3px 6px; - color: #fff; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/sass/omega.messages.scss --- a/sites/all/themes/omega/sass/omega.messages.scss Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -@import "compass"; - -// Use the default message layout. -div.messages { - position: relative; -} - -.close-message { - @include single-text-shadow(none); - position: absolute; - right: .4em; - top: -.2em; - text-decoration: none; - color: rgba(0, 0, 0, .3); - - &:before { - font-size: 1.4em; - content: "×"; - } - - &:hover, &:focus, &:active { - color: #000; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/screenshot.png Binary file sites/all/themes/omega/screenshot.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/.bowerrc --- a/sites/all/themes/omega/starterkits/basic/.bowerrc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -{ - "directory" : "libraries" -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/.gitignore --- a/sites/all/themes/omega/starterkits/basic/.gitignore Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -# Ignore the node modules folder (created by 'npm install'). -node_modules - -# We absolutely don't want to have the .sass-cache in git. -.sass-cache diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/.jshintrc --- a/sites/all/themes/omega/starterkits/basic/.jshintrc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -{ - "browser": true, - "bitwise": true, - "devel": true, - "curly": true, - "eqeqeq": true, - "forin": true, - "immed": true, - "indent": 2, - "jquery": true, - "latedef": true, - "newcap": true, - "noarg": true, - "quotmark": true, - "regexp": true, - "undef": true, - "unused": true, - "trailing": true, - "smarttabs": true, - "predef": [ - "Drupal", - "Modernizr" - ] -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/.ruby-gemset --- a/sites/all/themes/omega/starterkits/basic/.ruby-gemset Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -omega.{{ THEME }} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/.ruby-version --- a/sites/all/themes/omega/starterkits/basic/.ruby-version Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -1.9.3 diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/Gemfile --- a/sites/all/themes/omega/starterkits/basic/Gemfile Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -source 'https://rubygems.org' - -group :development do - - # Sass, Compass and extensions. - gem 'sass' # Sass. - gem 'sass-globbing' # Import Sass files based on globbing pattern. - gem 'compass' # Framework built on Sass. - gem 'compass-validator' # So you can `compass validate`. - gem 'compass-normalize' # Compass version of normalize.css. - gem 'compass-rgbapng' # Turns rgba() into .png's for backwards compatibility. - gem 'susy' # Susy grid framework. - gem 'singularitygs' # Alternative to the Susy grid framework. - gem 'toolkit' # Compass utility from the fabulous Snugug. - gem 'breakpoint' # Manages CSS media queries. - gem 'oily_png' # Faster Compass sprite generation. - gem 'css_parser' # Helps `compass stats` output statistics. - - # Guard - gem 'guard' # Guard event handler. - gem 'guard-compass' # Compile on sass/scss change. - gem 'guard-shell' # Run shell commands. - gem 'guard-livereload' # Browser reload. - gem 'yajl-ruby' # Faster JSON with LiveReload in the browser. - - # Dependency to prevent polling. Setup for multiple OS environments. - # Optionally remove the lines not specific to your OS. - # https://github.com/guard/guard#efficient-filesystem-handling - gem 'rb-inotify', '~> 0.9', :require => false # Linux - gem 'rb-fsevent', :require => false # Mac OSX - gem 'rb-fchange', :require => false # Windows - -end diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/Gruntfile.js --- a/sites/all/themes/omega/starterkits/basic/Gruntfile.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +0,0 @@ -'use strict'; - -module.exports = function (grunt) { - - grunt.initConfig({ - watch: { - options: { - livereload: true - }, - sass: { - files: ['sass/{,**/}*.{scss,sass}'], - tasks: ['compass:dev'], - options: { - livereload: false - } - }, - registry: { - files: ['*.info', '{,**}/*.{php,inc}'], - tasks: ['shell'], - options: { - livereload: false - } - }, - images: { - files: ['images/**'] - }, - css: { - files: ['css/{,**/}*.css'] - }, - js: { - files: ['js/{,**/}*.js', '!js/{,**/}*.min.js'], - tasks: ['jshint', 'uglify:dev'] - } - }, - - shell: { - all: { - command: 'drush cache-clear theme-registry' - } - }, - - compass: { - options: { - config: 'config.rb', - bundleExec: true - }, - dev: { - options: { - environment: 'development', - force: true - } - }, - dist: { - options: { - environment: 'production', - force: true - } - } - }, - - jshint: { - options: { - jshintrc: '.jshintrc' - }, - all: ['js/{,**/}*.js', '!js/{,**/}*.min.js'] - }, - - uglify: { - dev: { - options: { - mangle: false, - compress: false, - beautify: true - }, - files: [{ - expand: true, - cwd: 'js', - src: ['**/*.js', '!**/*.min.js'], - dest: 'js', - ext: '.min.js' - }] - }, - dist: { - options: { - mangle: true, - compress: true - }, - files: [{ - expand: true, - cwd: 'js', - src: ['**/*.js', '!**/*.min.js'], - dest: 'js', - ext: '.min.js' - }] - } - } - }); - - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-compass'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-shell'); - - grunt.registerTask('build', [ - 'uglify:dist', - 'compass:dist', - 'jshint' - ]); - -}; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/Guardfile --- a/sites/all/themes/omega/starterkits/basic/Guardfile Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -notification :off - -group :development do - - # Only run Compass if we have a config.rb file in place. - if File.exists?("config.rb") - # Compile on start. - puts `compass compile --time --quiet` - - # https://github.com/guard/guard-compass - guard :compass do - watch(%r{.+\.s[ac]ss$}) - end - end - - ## Uncomment this if you wish to clear the theme registry every time you - ## change one of the relevant theme files. - #guard :shell do - # puts 'Monitoring theme files.' - # - # watch(%r{.+\.(php|inc|info)$}) { |m| - # puts 'Change detected: ' + m[0] - # `drush cache-clear theme-registry` - # puts 'Cleared theme registry.' - # } - #end - - # https://github.com/guard/guard-livereload. - guard :livereload do - watch(%r{.+\.(css|js)$}) - end - -end diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/README.txt --- a/sites/all/themes/omega/starterkits/basic/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/basic.starterkit.inc --- a/sites/all/themes/omega/starterkits/basic/basic.starterkit.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -name = Basic -description = Provides a simple Sass setup. -screenshot = screenshot.png -engine = phptemplate -core = 7.x - -; Styles -stylesheets[all][] = css/{{ THEME }}.normalize.css -stylesheets[all][] = css/{{ THEME }}.styles.css - -; Regions -regions[header] = Header -regions[navigation] = Navigation -regions[highlighted] = Highlighted -regions[help] = Help -regions[content] = Content -regions[sidebar_first] = First Sidebar -regions[sidebar_second] = Second Sidebar -regions[footer] = Footer diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/bower.json --- a/sites/all/themes/omega/starterkits/basic/bower.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -{ - "name": "{{ THEME }}", - "version": "1.0.0", - "dependencies": { - "respond": "fubhy/respond", - "selectivizr": "fubhy/selectivizr", - "html5shiv": "fubhy/html5shiv", - "matchmedia": "fubhy/matchmedia", - "pie": "fubhy/pie" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/config.rb --- a/sites/all/themes/omega/starterkits/basic/config.rb Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -## -## This file is only needed for Compass/Sass integration. If you are not using -## Compass, you may safely ignore or delete this file. -## -## If you'd like to learn more about Sass and Compass, see the sass/README.txt -## file for more information. -## - -# Default to development if environment is not set. -saved = environment -if (environment.nil?) - environment = :development -else - environment = saved -end - -# Location of the theme's resources. -css_dir = "css" -sass_dir = "sass" -images_dir = "images" -generated_images_dir = images_dir + "/generated" -javascripts_dir = "js" - -# Require any additional compass plugins installed on your system. -require 'compass-normalize' -require 'rgbapng' -require 'toolkit' -require 'susy' -require 'sass-globbing' - -## -## You probably don't need to edit anything below this. -## - -# You can select your preferred output style here (:expanded, :nested, :compact -# or :compressed). -output_style = (environment == :production) ? :expanded : :nested - -# To enable relative paths to assets via compass helper functions. Since Drupal -# themes can be installed in multiple locations, we don't need to worry about -# the absolute path to the theme from the server omega. -relative_assets = true - -# Conditionally enable line comments when in development mode. -line_comments = (environment == :production) ? false : true - -# Output debugging info in development mode. -sass_options = (environment == :production) ? {} : {:debug_info => true} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/css/README.txt --- a/sites/all/themes/omega/starterkits/basic/css/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/css/{{ THEME }}.normalize.css --- a/sites/all/themes/omega/starterkits/basic/css/{{ THEME }}.normalize.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,328 +0,0 @@ -/******************************************************************************* - * _utils.scss - * - * Sass offers come very useful features, these include variables functions and - * mixins. Extensions such as Compass and Susy can also be used to provide extra - * functions and mixins to be used throughout the theme. This file acts as a - * single place for defining these things, which can then be accessed by - * importing _utils.scss where required. The following should be defined in this - * file: - * - Custom Sass mixins for the theme. - * - Custom Sass functions for the theme. - * - Overriding the default variables provided by extensions such as Compass. - * - Defining new variables for: - * - Colors. - * - Font sizes and families. - * - Layout and grid sizing. - ******************************************************************************/ -/*! normalize.css v1.1.0 | MIT License | git.io/normalize */ -/*! normalize.css v1.1.0 | HTML5 Display Definitions | MIT License | git.io/normalize */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -nav, -section, -summary { - display: block; -} - -audio, -canvas, -video { - display: inline-block; - *display: inline; - *zoom: 1; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -[hidden] { - display: none; -} - -/*! normalize.css v1.1.0 | Base | MIT License | git.io/normalize */ -html { - font-size: 100%; - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -html, -button, -input, -select, -textarea { - font-family: sans-serif; -} - -body { - margin: 0; -} - -/*! normalize.css v1.1.0 | Links | MIT License | git.io/normalize */ -a:focus { - outline: thin dotted; -} - -a:active, -a:hover { - outline: 0; -} - -/*! normalize.css v1.1.0 | Typography | MIT License | git.io/normalize */ -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -h2 { - font-size: 1.5em; - margin: 0.83em 0; -} - -h3 { - font-size: 1.17em; - margin: 1em 0; -} - -h4 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.67em; - margin: 2.33em 0; -} - -abbr[title] { - border-bottom: 1px dotted; -} - -b, -strong { - font-weight: bold; -} - -blockquote { - margin: 1em 40px; -} - -dfn { - font-style: italic; -} - -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; -} - -mark { - background: #ff0; - color: #000; -} - -p, -pre { - margin: 1em 0; -} - -code, -kbd, -pre, -samp { - font-family: monospace, serif; - _font-family: 'courier new', monospace; - font-size: 1em; -} - -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} - -q { - quotes: none; -} - -q:before, -q:after { - content: ''; - content: none; -} - -small { - font-size: 80%; -} - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -menu, -ol, -ul { - padding: 0 0 0 40px; -} - -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - -/*! normalize.css v1.1.0 | Embedded Content | MIT License | git.io/normalize */ -img { - border: 0; - -ms-interpolation-mode: bicubic; -} - -svg:not(:root) { - overflow: hidden; -} - -/*! normalize.css v1.1.0 | Figures | MIT License | git.io/normalize */ -figure { - margin: 0; -} - -/*! normalize.css v1.1.0 | Forms | MIT License | git.io/normalize */ -form { - margin: 0; -} - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - border: 0; - padding: 0; - white-space: normal; - *margin-left: -7px; -} - -button, -input, -select, -textarea { - font-family: inherit; - font-size: 100%; - margin: 0; - vertical-align: baseline; - *vertical-align: middle; -} - -button, -input { - line-height: normal; -} - -button, -select { - text-transform: none; -} - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; - *overflow: visible; -} - -button[disabled], -html input[disabled] { - cursor: default; -} - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - padding: 0; - *height: 13px; - *width: 13px; -} - -input[type="search"] { - -webkit-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -textarea { - overflow: auto; - vertical-align: top; -} - -/*! normalize.css v1.1.0 | Tables | MIT License | git.io/normalize */ -table { - border-collapse: collapse; - border-spacing: 0; -} - -*, *:after, *:before { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - *behavior: url('../behaviors/box-sizing/boxsizing.php'); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/css/{{ THEME }}.styles.css --- a/sites/all/themes/omega/starterkits/basic/css/{{ THEME }}.styles.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/******************************************************************************* - * style.scss - * - * This file shouldn't directly contain any SCSS code, instead it only serves to - * combine the SCSS contained in other Sass partials through @import directives. - * - * BASE............Styling for common HTML and Drupal elements. - * LAYOUT..........Styles for the page structure that contain components. - * COMPONENTS......Components, their modifiers and sub-components. - ******************************************************************************/ -/******************************************************************************* - * _utils.scss - * - * Sass offers come very useful features, these include variables functions and - * mixins. Extensions such as Compass and Susy can also be used to provide extra - * functions and mixins to be used throughout the theme. This file acts as a - * single place for defining these things, which can then be accessed by - * importing _utils.scss where required. The following should be defined in this - * file: - * - Custom Sass mixins for the theme. - * - Custom Sass functions for the theme. - * - Overriding the default variables provided by extensions such as Compass. - * - Defining new variables for: - * - Colors. - * - Font sizes and families. - * - Layout and grid sizing. - ******************************************************************************/ -/******************************************************************************* - * _base.scss - - * Base styles define the default look for HTML and common Drupal elements. - * - * These rules will generally be made up of element selectors for HTML elements - * such as headings, paragraphs and lists. Common Drupal elements such as form - * items, collapsible fieldsets and messages should be included in this partial. - * - * The styleguide module (http://drupal.org/project/styleguide) gives you a good - * overview of Drupals common elements for styling. By setting a solid baseline - * before adding any more specific customisations you ensure that as any new - * features are added they will be correctly styled without any extra work. - ******************************************************************************/ -/******************************************************************************* - * _layout.scss - * - * The layout of the major regions (usually, but not necessarily Drupal regions) - * that components will be placed within. Layout styles for the theme's - * components should not be placed here and should instead be kept with the - * relevant SCSS for that component. - ******************************************************************************/ -/******************************************************************************* - * _components.scss - * - * Imports more partials that contain full components (modules in SMACSS), their - * sub-components and modifiers. - * - * Components are discrete parts of your page that should sit within the regions - * of your layouts. You should try to abstract your components as much as - * possible to promote reuse throughout the theme. Components should be flexible - * enough to respond to any width and should never rely on context - * (e.g. .sidebar-first .component) for styling. This allows modules to be - * placed throughout the theme with no risk of them breaking. - * - * If you find you need to change the look of a component depending on it's - * context you should avoid using context based classes at all costs. Instead it - * is better to add another "modifier" class to the component to alter the - * styling. Again, this promotes reuse. - * - * Sub-components are the individual parts that make up a component. As a - * general rule, adding a class to target a sub-component is a much better - * option than using descendant selectors or element selectors. In many cases - * sub-components can be made more reusable by making them components in their - * own right, so they can then be used within other components. - * - * Almost everything that doesn't belong in base should be made a component. - * Here's some common examples throughout Drupal: - * - * - Blocks - * - Content Types - For example, you may have a generic node component that - * contains sub-components for the submitted by line and links. Specific - * components can then be created for each content type to style the - * specifics of each. Finally, by using entity view modes you can easily - * apply modifications based on the .node-[view-mode] classes. - * - Forms - For instance the log in form. - * - Views - Each views output style could be made into a component, the content - * of each row should be provided my a view mode styled by it's component - * CSS. Exposed filter forms, views pagers and other views elements are - * also good candidates for components. - ******************************************************************************/ diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/images/README.txt --- a/sites/all/themes/omega/starterkits/basic/images/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/js/README.txt --- a/sites/all/themes/omega/starterkits/basic/js/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/js/example.js --- a/sites/all/themes/omega/starterkits/basic/js/example.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -(function ($) { - - /** - * The recommended way for producing HTML markup through JavaScript is to write - * theming functions. These are similiar to the theming functions that you might - * know from 'phptemplate' (the default PHP templating engine used by most - * Drupal themes including Omega). JavaScript theme functions accept arguments - * and can be overriden by sub-themes. - * - * In most cases, there is no good reason to NOT wrap your markup producing - * JavaScript in a theme function. - */ - Drupal.theme.prototype.{{ THEME }}ExampleButton = function (path, title) { - // Create an anchor element with jQuery. - return $('' + title + ''); - }; - - /** - * Behaviors are Drupal's way of applying JavaScript to a page. The advantage - * of behaviors over simIn short, the advantage of Behaviors over a simple - * document.ready() lies in how it interacts with content loaded through Ajax. - * Opposed to the 'document.ready()' event which is only fired once when the - * page is initially loaded, behaviors get re-executed whenever something is - * added to the page through Ajax. - * - * You can attach as many behaviors as you wish. In fact, instead of overloading - * a single behavior with multiple, completely unrelated tasks you should create - * a separate behavior for every separate task. - * - * In most cases, there is no good reason to NOT wrap your JavaScript code in a - * behavior. - * - * @param context - * The context for which the behavior is being executed. This is either the - * full page or a piece of HTML that was just added through Ajax. - * @param settings - * An array of settings (added through drupal_add_js()). Instead of accessing - * Drupal.settings directly you should use this because of potential - * modifications made by the Ajax callback that also produced 'context'. - */ - Drupal.behaviors.{{ THEME }}ExampleBehavior = { - attach: function (context, settings) { - // By using the 'context' variable we make sure that our code only runs on - // the relevant HTML. Furthermore, by using jQuery.once() we make sure that - // we don't run the same piece of code for an HTML snippet that we already - // processed previously. By using .once('foo') all processed elements will - // get tagged with a 'foo-processed' class, causing all future invocations - // of this behavior to ignore them. - $('.some-selector', context).once('foo', function () { - // Now, we are invoking the previously declared theme function using two - // settings as arguments. - var $anchor = Drupal.theme('{{ THEME }}ExampleButton', settings.myExampleLinkPath, settings.myExampleLinkTitle); - - // The anchor is then appended to the current element. - $anchor.appendTo(this); - }); - } - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/libraries.make --- a/sites/all/themes/omega/starterkits/basic/libraries.make Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -; ############################################################################## -; -; This is a Drush make file that will automatically download the front-end -; libraries used by Omega. Alternatively, you can use Bower (http://bower.io) to -; accomplish this. -; -; Running Drush make in your sub-theme will cause the libraries to be downloaded -; into your theme. If you want to download them into Omega directly to make them -; available to all of your sub-themes (if you have multiple) then you should -; instead run omega.make from the Omega theme directory. -; -; To run this file with 'drush make' you first have to navigate into your theme. -; Normally, this would be 'sites/all/themes/{{ THEME }}'. -; -; $ cd sites/all/themes/{{ THEME }} -; -; Now you can invoke 'drush make' using the following command: -; -; $ drush make libraries.make --no-core --contrib-destination=. -; -; ############################################################################## - -core = 7.x -api = 2 - -libraries[selectivizr][download][type] = "file" -libraries[selectivizr][download][url] = "https://github.com/fubhy/selectivizr/archive/master.zip" - -libraries[html5shiv][download][type] = "file" -libraries[html5shiv][download][url] = "https://github.com/fubhy/html5shiv/archive/master.zip" - -libraries[respond][download][type] = "file" -libraries[respond][download][url] = "https://github.com/fubhy/respond/archive/master.zip" - -libraries[matchmedia][download][type] = "file" -libraries[matchmedia][download][url] = "https://github.com/fubhy/matchmedia/archive/master.zip" - -libraries[pie][download][type] = "file" -libraries[pie][download][url] = "https://github.com/fubhy/pie/archive/master.zip" diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/logo.png Binary file sites/all/themes/omega/starterkits/basic/logo.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/package.json --- a/sites/all/themes/omega/starterkits/basic/package.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -{ - "name": "{{ THEME }}", - "version": "1.0.0", - "dependencies": {}, - "devDependencies": { - "grunt": "~0.4.0", - "grunt-contrib-watch": "~0.4.3", - "grunt-contrib-compass": "~0.2.0", - "grunt-contrib-jshint": "~0.1.1", - "grunt-contrib-uglify": "~0.2.0", - "grunt-shell": "~0.3.1" - }, - "engines": { - "node": ">=0.8.0" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/preprocess/README.md --- a/sites/all/themes/omega/starterkits/basic/preprocess/README.md Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -# Defining preprocess hooks -Rather than placing your preprocess hooks directly in the template.php file you can manage them in automatically discovered and lazy-loaded include files. It is even possible to organize them in sub-folders. This feature greatly improves the maintainability of large themes that would otherwise contain hundreds of lines of unrelated code in your template.php file. - -The include files have to follow a certain naming pattern (HOOK.preprocess.inc) for them to be automatically discovered: - -* THEMENAME_preprocess_html() = html.preprocess.inc -* THEMENAME_preprocess_page() = page.preprocess.inc -* THEMENAME_preprocess_node() = node.preprocess.inc -* THEMENAME_preprocess_comment() = comment.preprocess.inc -* THEMENAME_preprocess_region() = region.preprocess.inc - -As with template files, you should replace underscores from the hook names with hyphens: - -* THEMENAME_preprocess_comment_wrapper() = comment-wrapper.preprocess.inc -* THEMENAME_preprocess_html_tag() = html-tag.preprocess.inc - -Inside of each of these files you define the preprocess hook just as you would otherwise do in your template.php file: - -``` -function THEMENAME_preprocess_HOOK(&$variables) { - // Your code here. -} -``` diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/basic/preprocess/page.preprocess.inc --- a/sites/all/themes/omega/starterkits/basic/preprocess/page.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - 0.9', :require => false # Linux - gem 'rb-fsevent', :require => false # Mac OSX - gem 'rb-fchange', :require => false # Windows - -end diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/Gruntfile.js --- a/sites/all/themes/omega/starterkits/extended/Gruntfile.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +0,0 @@ -'use strict'; - -module.exports = function (grunt) { - - grunt.initConfig({ - watch: { - options: { - livereload: true - }, - sass: { - files: ['sass/{,**/}*.{scss,sass}'], - tasks: ['compass:dev'], - options: { - livereload: false - } - }, - registry: { - files: ['*.info', '{,**}/*.{php,inc}'], - tasks: ['shell'], - options: { - livereload: false - } - }, - images: { - files: ['images/**'] - }, - css: { - files: ['css/{,**/}*.css'] - }, - js: { - files: ['js/{,**/}*.js', '!js/{,**/}*.min.js'], - tasks: ['jshint', 'uglify:dev'] - } - }, - - shell: { - all: { - command: 'drush cache-clear theme-registry' - } - }, - - compass: { - options: { - config: 'config.rb', - bundleExec: true - }, - dev: { - options: { - environment: 'development', - force: true - } - }, - dist: { - options: { - environment: 'production', - force: true - } - } - }, - - jshint: { - options: { - jshintrc: '.jshintrc' - }, - all: ['js/{,**/}*.js', '!js/{,**/}*.min.js'] - }, - - uglify: { - dev: { - options: { - mangle: false, - compress: false, - beautify: true - }, - files: [{ - expand: true, - cwd: 'js', - src: ['**/*.js', '!**/*.min.js'], - dest: 'js', - ext: '.min.js' - }] - }, - dist: { - options: { - mangle: true, - compress: true - }, - files: [{ - expand: true, - cwd: 'js', - src: ['**/*.js', '!**/*.min.js'], - dest: 'js', - ext: '.min.js' - }] - } - } - }); - - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-compass'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-shell'); - - grunt.registerTask('build', [ - 'uglify:dist', - 'compass:dist', - 'jshint' - ]); - -}; diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/Guardfile --- a/sites/all/themes/omega/starterkits/extended/Guardfile Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -notification :off - -group :development do - - # Only run Compass if we have a config.rb file in place. - if File.exists?("config.rb") - # Compile on start. - puts `compass compile --time --quiet` - - # https://github.com/guard/guard-compass - guard :compass do - watch(%r{.+\.s[ac]ss$}) - end - end - - ## Uncomment this if you wish to clear the theme registry every time you - ## change one of the relevant theme files. - #guard :shell do - # puts 'Monitoring theme files.' - # - # watch(%r{.+\.(php|inc|info)$}) { |m| - # puts 'Change detected: ' + m[0] - # `drush cache-clear theme-registry` - # puts 'Cleared theme registry.' - # } - #end - - # https://github.com/guard/guard-livereload. - guard :livereload do - watch(%r{.+\.(css|js)$}) - end - -end diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/README.txt --- a/sites/all/themes/omega/starterkits/extended/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/bower.json --- a/sites/all/themes/omega/starterkits/extended/bower.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -{ - "name": "{{ THEME }}", - "version": "1.0.0", - "dependencies": { - "respond": "fubhy/respond", - "selectivizr": "fubhy/selectivizr", - "html5shiv": "fubhy/html5shiv", - "matchmedia": "fubhy/matchmedia", - "pie": "fubhy/pie" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/config.rb --- a/sites/all/themes/omega/starterkits/extended/config.rb Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -## -## This file is only needed for Compass/Sass integration. If you are not using -## Compass, you may safely ignore or delete this file. -## -## If you'd like to learn more about Sass and Compass, see the sass/README.txt -## file for more information. -## - -# Default to development if environment is not set. -saved = environment -if (environment.nil?) - environment = :development -else - environment = saved -end - -# Location of the theme's resources. -css_dir = "css" -sass_dir = "sass" -images_dir = "images" -generated_images_dir = images_dir + "/generated" -javascripts_dir = "js" - -# Require any additional compass plugins installed on your system. -require 'compass-normalize' -require 'rgbapng' -require 'toolkit' -require 'susy' -require 'sass-globbing' - -## -## You probably don't need to edit anything below this. -## - -# You can select your preferred output style here (:expanded, :nested, :compact -# or :compressed). -output_style = (environment == :production) ? :expanded : :nested - -# To enable relative paths to assets via compass helper functions. Since Drupal -# themes can be installed in multiple locations, we don't need to worry about -# the absolute path to the theme from the server omega. -relative_assets = true - -# Conditionally enable line comments when in development mode. -line_comments = (environment == :production) ? false : true - -# Output debugging info in development mode. -sass_options = (environment == :production) ? {} : {:debug_info => true} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/css/README.txt --- a/sites/all/themes/omega/starterkits/extended/css/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.fallback.css --- a/sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.fallback.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/* line 4, ../sass/partials/base/_root.scss */ -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -/* line 9, ../sass/partials/base/_root.scss */ -.clearfix { - overflow: hidden; - *zoom: 1; -} - -/* line 1, ../sass/partials/base/_media.scss */ -img, media { - max-width: 100%; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.hacks.css --- a/sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.hacks.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -@media all and (max-width: 800px) { - /* line 3, ../sass/hacks.scss */ - #toolbar, #admin-menu { - display: none; - } - - /* line 8, ../sass/hacks.scss */ - html body.toolbar, html body.admin-menu { - padding-top: 0 !important; - margin-top: 0 !important; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.normalize.css --- a/sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.normalize.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,300 +0,0 @@ -/* normalize.css v1.0.1 | MIT License | git.io/normalize */ -/* normalize.css v1.0.1 | HTML5 Display Definitions | MIT License | git.io/normalize */ -/* line 19, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_html5.scss */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -nav, -section, -summary { - display: block; -} - -/* line 27, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_html5.scss */ -audio, -canvas, -video { - display: inline-block; - *display: inline; - *zoom: 1; -} - -/* line 38, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_html5.scss */ -audio:not([controls]) { - display: none; - height: 0; -} - -/* line 45, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_html5.scss */ -[hidden] { - display: none; -} - -/* normalize.css v1.0.1 | Base | MIT License | git.io/normalize */ -/* line 11, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_base.scss */ -html { - font-family: sans-serif; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; -} - -/* line 19, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_base.scss */ -body { - margin: 0; -} - -/* normalize.css v1.0.1 | Links | MIT License | git.io/normalize */ -/* line 9, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_links.scss */ -a:focus { - outline: thin dotted; -} - -/* line 16, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_links.scss */ -a:active, -a:hover { - outline: 0; -} - -/* normalize.css v1.0.1 | Typography | MIT License | git.io/normalize */ -/* line 10, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -h1 { - font-size: 2em; -} - -/* line 16, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -abbr[title] { - border-bottom: 1px dotted; -} - -/* line 23, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -b, -strong { - font-weight: bold; -} - -/* line 28, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -blockquote { - margin: 1em 40px; -} - -/* line 35, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -dfn { - font-style: italic; -} - -/* line 41, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -mark { - background: #ff0; - color: #000; -} - -/* line 50, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -p, -pre { - margin: 1em 0; -} - -/* line 60, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -code, -kbd, -pre, -samp { - font-family: monospace, serif; - font-size: 1em; -} - -/* line 70, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -/* line 78, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -q { - quotes: "\201C" "\201D" "\2018" "\2019"; -} - -/* line 87, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -q { - quotes: none; -} - -/* line 92, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -q:before, -q:after { - content: ''; - content: none; -} - -/* line 100, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -small { - font-size: 80%; -} - -/* line 107, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -/* line 114, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -sup { - top: -0.5em; -} - -/* line 118, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_typography.scss */ -sub { - bottom: -0.25em; -} - -/* line 11, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_lists.scss */ -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -/* line 15, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_lists.scss */ -dd { - margin: 0 0 0 40px; -} - -/* line 23, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_lists.scss */ -menu, -ol, -ul { - padding: 0 0 0 40px; -} - -/* line 30, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_lists.scss */ -nav ul, -nav ol { - list-style: none; - list-style-image: none; -} - -/* normalize.css v1.0.1 | Embedded Content | MIT License | git.io/normalize */ -/* line 9, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_embeds.scss */ -img { - border: 0; - -ms-interpolation-mode: bicubic; -} - -/* line 18, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_embeds.scss */ -svg:not(:root) { - overflow: hidden; -} - -/* normalize.css v1.0.1 | Figures | MIT License | git.io/normalize */ -/* line 9, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_figures.scss */ -figure { - margin: 0; -} - -/* normalize.css v1.0.1 | Forms | MIT License | git.io/normalize */ -/* line 10, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -form { - margin: 0; -} - -/* line 17, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -fieldset { - border: 1px solid silver; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/* line 30, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -legend { - border: 0; - padding: 0; - white-space: normal; - *margin-left: -7px; -} - -/* line 49, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -button, -input, -select, -textarea { - font-family: inherit; - font-size: 100%; - margin: 0; - vertical-align: baseline; - *vertical-align: middle; -} - -/* line 63, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -button, -input { - line-height: normal; -} - -/* line 80, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; - *overflow: visible; -} - -/* line 91, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -button[disabled], -input[disabled] { - cursor: default; -} - -/* line 103, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - padding: 0; - *height: 13px; - *width: 13px; -} - -/* line 116, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -input[type="search"] { - -webkit-appearance: textfield; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; - box-sizing: content-box; -} - -/* line 127, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/* line 134, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; -} - -/* line 142, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_forms.scss */ -textarea { - overflow: auto; - vertical-align: top; -} - -/* normalize.css v1.0.1 | Tables | MIT License | git.io/normalize */ -/* line 9, ../../../../../../../../lib/gems/1.9.1/gems/compass-normalize-1.4.2/stylesheets/normalize/_tables.scss */ -table { - border-collapse: collapse; - border-spacing: 0; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.styles.css --- a/sites/all/themes/omega/starterkits/extended/css/{{ THEME }}.styles.css Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -/* line 4, ../sass/partials/base/_root.scss */ -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -/* line 9, ../sass/partials/base/_root.scss */ -.clearfix { - overflow: hidden; - *zoom: 1; -} - -/* line 1, ../sass/partials/base/_media.scss */ -img, media { - max-width: 100%; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/extended.starterkit.inc --- a/sites/all/themes/omega/starterkits/extended/extended.starterkit.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -name = Extended -description = Comes with a well organized Sass setup with heavy use of partials. -screenshot = screenshot.png -engine = phptemplate -core = 7.x - -; Styles -stylesheets[all][] = css/{{ THEME }}.normalize.css -stylesheets[all][] = css/{{ THEME }}.hacks.css -stylesheets[all][] = css/{{ THEME }}.styles.css - -; Regions -regions[header] = Header -regions[navigation] = Navigation -regions[highlighted] = Highlighted -regions[help] = Help -regions[content] = Content -regions[sidebar_first] = First Sidebar -regions[sidebar_second] = Second Sidebar -regions[footer] = Footer diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/images/README.txt --- a/sites/all/themes/omega/starterkits/extended/images/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/js/README.txt --- a/sites/all/themes/omega/starterkits/extended/js/README.txt Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -Fill me. diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/js/example.js --- a/sites/all/themes/omega/starterkits/extended/js/example.js Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -(function ($) { - - /** - * The recommended way for producing HTML markup through JavaScript is to write - * theming functions. These are similiar to the theming functions that you might - * know from 'phptemplate' (the default PHP templating engine used by most - * Drupal themes including Omega). JavaScript theme functions accept arguments - * and can be overriden by sub-themes. - * - * In most cases, there is no good reason to NOT wrap your markup producing - * JavaScript in a theme function. - */ - Drupal.theme.prototype.{{ THEME }}ExampleButton = function (path, title) { - // Create an anchor element with jQuery. - return $('' + title + ''); - }; - - /** - * Behaviors are Drupal's way of applying JavaScript to a page. The advantage - * of behaviors over simIn short, the advantage of Behaviors over a simple - * document.ready() lies in how it interacts with content loaded through Ajax. - * Opposed to the 'document.ready()' event which is only fired once when the - * page is initially loaded, behaviors get re-executed whenever something is - * added to the page through Ajax. - * - * You can attach as many behaviors as you wish. In fact, instead of overloading - * a single behavior with multiple, completely unrelated tasks you should create - * a separate behavior for every separate task. - * - * In most cases, there is no good reason to NOT wrap your JavaScript code in a - * behavior. - * - * @param context - * The context for which the behavior is being executed. This is either the - * full page or a piece of HTML that was just added through Ajax. - * @param settings - * An array of settings (added through drupal_add_js()). Instead of accessing - * Drupal.settings directly you should use this because of potential - * modifications made by the Ajax callback that also produced 'context'. - */ - Drupal.behaviors.{{ THEME }}ExampleBehavior = { - attach: function (context, settings) { - // By using the 'context' variable we make sure that our code only runs on - // the relevant HTML. Furthermore, by using jQuery.once() we make sure that - // we don't run the same piece of code for an HTML snippet that we already - // processed previously. By using .once('foo') all processed elements will - // get tagged with a 'foo-processed' class, causing all future invocations - // of this behavior to ignore them. - $('.some-selector', context).once('foo', function () { - // Now, we are invoking the previously declared theme function using two - // settings as arguments. - var $anchor = Drupal.theme('{{ THEME }}ExampleButton', settings.myExampleLinkPath, settings.myExampleLinkTitle); - - // The anchor is then appended to the current element. - $anchor.appendTo(this); - }); - } - }; - -})(jQuery); diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/libraries.make --- a/sites/all/themes/omega/starterkits/extended/libraries.make Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -; ############################################################################## -; -; This is a Drush make file that will automatically download the front-end -; libraries used by Omega. Alternatively, you can use Bower (http://bower.io) to -; accomplish this. -; -; Running Drush make in your sub-theme will cause the libraries to be downloaded -; into your theme. If you want to download them into Omega directly to make them -; available to all of your sub-themes (if you have multiple) then you should -; instead run omega.make from the Omega theme directory. -; -; To run this file with 'drush make' you first have to navigate into your theme. -; Normally, this would be 'sites/all/themes/{{ THEME }}'. -; -; $ cd sites/all/themes/{{ THEME }} -; -; Now you can invoke 'drush make' using the following command: -; -; $ drush make libraries.make --no-core --contrib-destination=. -; -; ############################################################################## - -core = 7.x -api = 2 - -libraries[selectivizr][download][type] = "file" -libraries[selectivizr][download][url] = "https://github.com/fubhy/selectivizr/archive/master.zip" - -libraries[html5shiv][download][type] = "file" -libraries[html5shiv][download][url] = "https://github.com/fubhy/html5shiv/archive/master.zip" - -libraries[respond][download][type] = "file" -libraries[respond][download][url] = "https://github.com/fubhy/respond/archive/master.zip" - -libraries[matchmedia][download][type] = "file" -libraries[matchmedia][download][url] = "https://github.com/fubhy/matchmedia/archive/master.zip" - -libraries[pie][download][type] = "file" -libraries[pie][download][url] = "https://github.com/fubhy/pie/archive/master.zip" diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/logo.png Binary file sites/all/themes/omega/starterkits/extended/logo.png has changed diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/package.json --- a/sites/all/themes/omega/starterkits/extended/package.json Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -{ - "name": "{{ THEME }}", - "version": "1.0.0", - "dependencies": {}, - "devDependencies": { - "grunt": "~0.4.0", - "grunt-contrib-watch": "~0.4.3", - "grunt-contrib-compass": "~0.2.0", - "grunt-contrib-jshint": "~0.1.1", - "grunt-contrib-uglify": "~0.2.0", - "grunt-shell": "~0.3.1" - }, - "engines": { - "node": ">=0.8.0" - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/preprocess/README.md --- a/sites/all/themes/omega/starterkits/extended/preprocess/README.md Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -# Defining preprocess hooks -Rather than placing your preprocess hooks directly in the template.php file you can manage them in automatically discovered and lazy-loaded include files. It is even possible to organize them in sub-folders. This feature greatly improves the maintainability of large themes that would otherwise contain hundreds of lines of unrelated code in your template.php file. - -The include files have to follow a certain naming pattern (HOOK.preprocess.inc) for them to be automatically discovered: - -* THEMENAME_preprocess_html() = html.preprocess.inc -* THEMENAME_preprocess_page() = page.preprocess.inc -* THEMENAME_preprocess_node() = node.preprocess.inc -* THEMENAME_preprocess_comment() = comment.preprocess.inc -* THEMENAME_preprocess_region() = region.preprocess.inc - -As with template files, you should replace underscores from the hook names with hyphens: - -* THEMENAME_preprocess_comment_wrapper() = comment-wrapper.preprocess.inc -* THEMENAME_preprocess_html_tag() = html-tag.preprocess.inc - -Inside of each of these files you define the preprocess hook just as you would otherwise do in your template.php file: - -``` -function THEMENAME_preprocess_HOOK(&$variables) { - // Your code here. -} -``` diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/preprocess/html.preprocess.inc --- a/sites/all/themes/omega/starterkits/extended/preprocess/html.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ - array( - '!IE' => FALSE, - 'IE' => 'lte IE 8', - ), - 'group' => CSS_THEME, - 'weight' => 1000, - )); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/starterkits/extended/preprocess/page.preprocess.inc --- a/sites/all/themes/omega/starterkits/extended/preprocess/page.preprocess.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -= DRUPAL_BOOTSTRAP_DATABASE && $GLOBALS['theme'] === $GLOBALS['theme_key'] && ($GLOBALS['theme'] == 'omega' || (!empty($GLOBALS['base_theme_info']) && $GLOBALS['base_theme_info'][0]->name == 'omega'))) { - // Managing debugging (flood) messages and a few development tasks. This also - // lives outside of any function declaration to make sure that the code is - // executed before any theme hooks. - if (omega_extension_enabled('development') && user_access('administer site configuration')) { - if (variable_get('theme_' . $GLOBALS['theme'] . '_settings') && flood_is_allowed('omega_' . $GLOBALS['theme'] . '_theme_settings_warning', 3)) { - // Alert the user that the theme settings are served from a variable. - flood_register_event('omega_' . $GLOBALS['theme'] . '_theme_settings_warning'); - drupal_set_message(t('The settings for this theme are currently served from a variable. You might want to export them to your .info file.'), 'warning'); - } - - // Rebuild the theme registry / aggregates on every page load if the - // development extension is enabled and configured to do so. - if (omega_theme_get_setting('omega_rebuild_theme_registry', FALSE)) { - // Rebuild the theme data. - system_rebuild_theme_data(); - // Rebuild the theme registry. - drupal_theme_rebuild(); - - if (flood_is_allowed('omega_' . $GLOBALS['theme'] . '_rebuild_registry_warning', 3)) { - // Alert the user that the theme registry is being rebuilt on every - // request. - flood_register_event('omega_' . $GLOBALS['theme'] . '_rebuild_registry_warning'); - drupal_set_message(t('The theme registry is being rebuilt on every request. Remember to turn off this feature on production websites.', array("!url" => url('admin/appearance/settings/' . $GLOBALS['theme']))), 'warning'); - } - } - - if (omega_theme_get_setting('omega_rebuild_aggregates', FALSE) && variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) { - foreach (array('css', 'js') as $type) { - variable_del('drupal_' . $type . '_cache_files'); - - foreach (file_scan_directory('public://' . $type . '', '/.*/') as $file) { - // Delete files that are older than 20 seconds. - if (REQUEST_TIME - filemtime($file->uri) > 20) { - file_unmanaged_delete($file->uri); - } - }; - } - - if (flood_is_allowed('omega_' . $GLOBALS['theme'] . '_rebuild_aggregates_warning', 3)) { - // Alert the user that the theme registry is being rebuilt on every - // request. - flood_register_event('omega_' . $GLOBALS['theme'] . '_rebuild_aggregates_warning'); - drupal_set_message(t('The CSS and JS aggregates are being rebuilt on every request. Remember to turn off this feature on production websites.', array("!url" => url('admin/appearance/settings/' . $GLOBALS['theme']))), 'warning'); - } - } - } -} - -/** - * Implements hook_element_info_alter(). - */ -function omega_element_info_alter(&$elements) { - $elements['scripts'] = array( - '#items' => array(), - '#pre_render' => array('omega_pre_render_scripts'), - '#group_callback' => 'omega_group_js', - '#aggregate_callback' => 'omega_aggregate_js', - ); -} - -/** - * Implements hook_css_alter(). - */ -function omega_css_alter(&$css) { - $omega = drupal_get_path('theme', 'omega'); - - // The CSS_SYSTEM aggregation group doesn't make any sense. Therefore, we are - // pre-pending it to the CSS_DEFAULT group. This has the same effect as giving - // it a separate (low-weighted) group but also allows it to be aggregated - // together with the rest of the CSS. - foreach ($css as &$item) { - if ($item['group'] == CSS_SYSTEM) { - $item['group'] = CSS_DEFAULT; - $item['weight'] = $item['weight'] - 100; - } - } - - // Clean up core and contrib module CSS. - $overrides = array( - 'aggregator' => array( - 'aggregator.css' => array( - 'theme' => 'aggregator.theme.css', - ), - 'aggregator-rtl.css' => array( - 'theme' => 'aggregator.theme-rtl.css', - ), - ), - 'block' => array( - 'block.css' => array( - 'admin' => 'block.admin.css', - 'demo' => 'block.demo.css', - ), - ), - 'book' => array( - 'book.css' => array( - 'theme' => 'book.theme.css', - 'admin' => 'book.admin.css', - ), - 'book-rtl.css' => array( - 'theme' => 'book.theme-rtl.css', - ), - ), - 'color' => array( - 'color.css' => array( - 'admin' => 'color.admin.css', - ), - 'color-rtl.css' => array( - 'admin' => 'color.admin-rtl.css', - ), - ), - 'comment' => array( - 'comment.css' => array( - 'theme' => 'comment.theme.css', - ), - 'comment-rtl.css' => array( - 'theme' => 'comment.theme-rtl.css', - ), - ), - 'contextual' => array( - 'contextual.css' => array( - 'base' => 'contextual.base.css', - 'theme' => 'contextual.theme.css', - ), - 'contextual-rtl.css' => array( - 'base' => 'contextual.base-rtl.css', - 'theme' => 'contextual.theme-rtl.css', - ), - ), - 'field' => array( - 'theme/field.css' => array( - 'theme' => 'field.theme.css', - ), - 'theme/field-rtl.css' => array( - 'theme' => 'field.theme-rtl.css', - ), - ), - 'field_ui' => array( - 'field_ui.css' => array( - 'admin' => 'field_ui.admin.css', - ), - 'field_ui-rtl.css' => array( - 'admin' => 'field_ui.admin-rtl.css', - ), - ), - 'file' => array( - 'file.css' => array( - 'theme' => 'file.theme.css', - ), - ), - 'filter' => array( - 'filter.css' => array( - 'theme' => 'filter.theme.css', - ), - ), - 'forum' => array( - 'forum.css' => array( - 'theme' => 'forum.theme.css', - ), - 'forum-rtl.css' => array( - 'theme' => 'forum.theme-rtl.css', - ), - ), - 'image' => array( - 'image.css' => array( - 'theme' => 'image.theme.css', - ), - 'image-rtl.css' => array( - 'theme' => 'image.theme-rtl.css', - ), - 'image.admin.css' => array( - 'admin' => 'image.admin.css', - ), - ), - 'locale' => array( - 'locale.css' => array( - 'admin' => 'locale.admin.css', - ), - 'locale-rtl.css' => array( - 'admin' => 'locale.admin-rtl.css', - ), - ), - 'openid' => array( - 'openid.css' => array( - 'base' => 'openid.base.css', - 'theme' => 'openid.theme.css', - ), - 'openid-rtl.css' => array( - 'base' => 'openid.base-rtl.css', - 'theme' => 'openid.theme-rtl.css', - ), - ), - 'poll' => array( - 'poll.css' => array( - 'admin' => 'poll.admin.css', - 'theme' => 'poll.theme.css', - ), - 'poll-rtl.css' => array( - 'theme' => 'poll.theme-rtl.css', - ), - ), - 'search' => array( - 'search.css' => array( - 'theme' => 'search.theme.css', - ), - 'search-rtl.css' => array( - 'theme' => 'search.theme-rtl.css', - ), - ), - 'system' => array( - 'system.base.css' => array( - 'base' => 'system.base.css', - ), - 'system.base-rtl.css' => array( - 'base' => 'system.base-rtl.css', - ), - 'system.theme.css' => array( - 'theme' => 'system.theme.css', - ), - 'system.theme-rtl.css' => array( - 'theme' => 'system.theme-rtl.css', - ), - 'system.admin.css' => array( - 'admin' => 'system.admin.css', - ), - 'system.admin-rtl.css' => array( - 'admin' => 'system.admin-rtl.css', - ), - 'system.menus.css' => array( - 'theme' => 'system.menus.theme.css', - ), - 'system.menus-rtl.css' => array( - 'theme' => 'system.menus.theme-rtl.css', - ), - 'system.messages.css' => array( - 'theme' => 'system.messages.theme.css', - ), - 'system.messages-rtl.css' => array( - 'theme' => 'system.messages.theme-rtl.css', - ), - ), - 'taxonomy' => array( - 'taxonomy.css' => array( - 'admin' => 'taxonomy.admin.css', - ), - ), - 'user' => array( - 'user.css' => array( - 'base' => 'user.base.css', - 'admin' => 'user.admin.css', - 'theme' => 'user.theme.css', - ), - 'user-rtl.css' => array( - 'admin' => 'user.admin-rtl.css', - 'theme' => 'user.theme-rtl.css', - ), - ), - ); - - // Check if we are on an admin page. Otherwise, we can skip admin CSS. - $path = current_path(); - $types = path_is_admin($path) ? array('base', 'theme', 'admin') : array('base', 'theme'); - // Add a special case for the block demo page. - $types = strpos($path, 'admin/structure/block/demo') === 0 ? array_merge($types, array('demo')) : $types; - - // Override module provided CSS with clean and modern alternatives provided - // by Omega. - foreach ($overrides as $module => $files) { - // We gathered the CSS files with paths relative to the providing module. - $path = drupal_get_path('module', $module); - - foreach ($files as $file => $items) { - if (isset($css[$path . '/' . $file])) { - // Keep a copy of the original file array so we can merge that with our - // overrides in order to keep the 'weight' and 'group' declarations. - $original = $css[$path . '/' . $file]; - unset($css[$path . '/' . $file]); - - // Omega 4.x tries to follow the pattern described in - // http://drupal.org/node/1089868 for declaring CSS files. Therefore, it - // may take more than a single file to override a .css file added by - // core. This gives us better granularity when overriding .css files - // in a sub-theme. - foreach ($types as $type) { - if (isset($items[$type])) { - $css[$omega . '/css/modules/' . $module . '/' . $items[$type]] = array( - 'data' => $omega . '/css/modules/' . $module . '/' . $items[$type], - ) + $original; - } - } - } - } - } - - // Exclude CSS files as declared in the theme settings. - if (omega_extension_enabled('assets') && $regex = omega_theme_get_setting('omega_css_exclude_regex')) { - // Make sure that RTL styles are excluded as well when a file name has been - // specified with it's full .css file extension. - $regex = preg_replace('/\\\.css$/', '(\.css|-rtl\.css)', $regex); - omega_exclude_assets($css, $regex); - } -} - -/** - * Implements hook_js_alter(). - */ -function omega_js_alter(&$js) { - // If the AJAX.js isn't included... we don't need the ajaxPageState settings! - if ( ! isset($js['misc/ajax.js']) && isset($js['settings']['data'])) { - foreach ($js['settings']['data'] as $delta => $setting) { - if (array_key_exists('ajaxPageState', $setting)) { - if (count($setting) == 1) { - unset($js['settings']['data'][$delta]); - } - else { - unset($js['settings']['data'][$delta]['ajaxPageState']); - } - } - } - } - - if (!omega_extension_enabled('assets')) { - return; - } - - if ($regex = omega_theme_get_setting('omega_js_exclude_regex')) { - omega_exclude_assets($js, $regex); - } - - // Move the specified JavaScript files to the footer. - if (($footer = omega_theme_get_setting('omega_js_footer')) && is_array($footer)) { - $regex = omega_generate_path_regex($footer); - $mapping = omega_generate_asset_mapping($js); - - foreach (preg_grep($regex, $mapping) as $key => $match) { - $js[$key]['scope'] = 'footer'; - } - } -} - -/** - * Implements hook_form_alter(). - */ -function omega_form_alter(&$form, &$form_state, $form_id) { - // Duplicate the form ID as a class so we can reduce specificity in our CSS. - $form['#attributes']['class'][] = drupal_clean_css_identifier($form['#id']); -} - -/** - * Implements hook_form_FORM_ID_alter(). - */ -function omega_form_field_ui_display_overview_form_alter(&$form, &$form_state, $form_id) { - // Add a class to use as a styling hook, instead of the ID attribute. - $form['fields']['#attributes']['class'][] = 'field-display-overview'; -} - -/** - * Implements hook_theme(). - */ -function omega_theme() { - $info['omega_chrome'] = array( - 'render element' => 'element', - ); - - $info['omega_layout'] = array( - 'base hook' => 'page', - ); - - foreach (omega_layouts_info() as $layout) { - $info[$layout['template']] = array( - 'template' => $layout['template'], - 'path' => $layout['path'], - ); - } - - return $info; -} - -/** - * Implements hook_theme_registry_alter(). - */ -function omega_theme_registry_alter(&$registry) { - // Fix for integration with the theme developer module. - if (module_exists('devel_themer')) { - foreach ($registry as $hook => $data) { - $registry[$hook] = $data['original']; - } - } - - $mapping = array( - 'preprocess' => 'preprocess functions', - 'process' => 'process functions', - 'theme' => 'function', - ); - - // We prefer the attributes array instead of the plain classes array used by - // many core and contrib modules. In Drupal 8, we are going to convert all - // occurrences of that into an attributes object. For now, we simply - // synchronize our attributes array with the classes array to encourage - // themers to use it. - foreach ($registry as $hook => $item) { - if (empty($item['base hook']) && empty($item[$mapping['theme']])) { - if (($index = array_search('template_preprocess', $registry[$hook][$mapping['preprocess']], TRUE)) !== FALSE) { - // Make sure that omega_initialize_attributes() is invoked first. - array_unshift($registry[$hook][$mapping['process']], 'omega_cleanup_attributes'); - // Add omega_cleanup_attributes() right after template_preprocess(). - array_splice($registry[$hook][$mapping['preprocess']], $index + 1, 0, 'omega_initialize_attributes'); - } - } - } - - // Allow themers to split preprocess / process / theme code across separate - // files to keep the main template.php file clean. This is really fast because - // it uses the theme registry to cache the paths to the files that it finds. - $trail = omega_theme_trail(); - - // Keep track of theme function include files that are not directly loaded - // into the theme registry. This is the case for previously unknown theme - // hook suggestion implementations. - foreach ($trail as $theme => $name) { - // Remove the current element from the trail so we only iterate over - // higher level themes during subsequent checks. - unset($trail[$theme]); - - foreach ($mapping as $type => $map) { - $path = drupal_get_path('theme', $theme); - // Only look for files that match the 'something.preprocess.inc' pattern. - $mask = '/.' . $type . '.inc$/'; - // This is the length of the suffix (e.g. '.preprocess') of the basename - // of a file. - $strlen = -(strlen($type) + 1); - - // Recursively scan the folder for the current step for (pre-)process - // files and write them to the registry. - foreach (file_scan_directory($path . '/' . $type, $mask) as $item) { - $hook = strtr(substr($item->name, 0, $strlen), '-', '_'); - - // If there is no hook with that name, continue. This does not apply to - // theme functions because if we want to support theme hook suggestions - // in .theme.inc files that have not previously been declared we need to - // run the full discovery for theme functions. - if (!array_key_exists($hook, $registry) && ($type !== 'theme' || strpos($hook, '__') === FALSE)) { - continue; - } - - // Skip theme function overrides if they are already declared 'final'. - if ($type === 'theme' && !empty($registry[$hook]['final'])) { - continue; - } - - // Name of the function (theme hook or theme function). - $callback = $type == 'theme' ? $theme . '_' . $hook : $theme . '_' . $type . '_' . $hook; - - // Furthermore, we don't want to re-override sub-theme template file or - // theme function overrides with theme functions from include files - // defined in a lower-level base theme. Without this check this would - // happen because our alter hook runs after the template file and theme - // function discovery logic from Drupal core (theme engine). - if ($type == 'theme' && $theme != $GLOBALS['theme'] && in_array($registry[$hook]['type'], array('base_theme_engine', 'theme_engine'))) { - // Now we know that there is a template file or theme function - // override that has been defined somewhere in the theme trail. Now - // we need to check if the declaration of that function or template - // file lives further down the theme trail than the function we are - // currently looking it. - foreach ($trail as $subkey => $subtheme) { - if ($registry[$hook]['theme path'] == drupal_get_path('theme', $subkey)) { - continue(2); - } - } - } - - // Load the file once so we can check if the function exists. - require_once $item->uri; - - // Proceed if the callback doesn't exist. - if (!function_exists($callback)) { - continue; - } - - // If we got this far and the following if() statement evaluates to true - // then that means that the theme function override that is currently - // being processed is a previously unknown theme hook suggestion. - if ($type == 'theme' && !array_key_exists($hook, $registry) && $separator = strpos($hook, '__')) { - $suggestion = $hook; - $hook = substr($hook, 0, $separator); - - if (!isset($registry[$hook])) { - // Bail out here if the base hook does not exist. - continue; - } - - // Register the theme hook suggestion. - $arg_name = isset($registry[$hook]['variables']) ? 'variables' : 'render element'; - $registry[$suggestion] = array( - $map => $callback, - $arg_name => $registry[$hook][$arg_name], - 'base hook' => $hook, - ); - } - elseif ($type == 'theme') { - // Inject our theme function. We will leave any potential 'template' - // declarations in the registry as they don't hurt us anyways - // because drupal gives precedence to theme functions. - $registry[$hook][$map] = $callback; - } - else { - // Append the included preprocess hook to the array of functions. - $registry[$hook][$map][] = $callback; - } - - // By adding this file to the 'includes' array we make sure that it is - // available when the hook is executed. - $registry[$hook]['includes'][] = $item->uri; - } - } - } - - // Include the main extension file for every enabled extension. This is - // required for the next step (allowing extensions to register hooks in the - // theme registry). - foreach (omega_extensions() as $extension => $info) { - // Load all the implementations for this extensions and invoke the according - // hooks. - if (omega_extension_enabled($extension)) { - $file = $info['path'] . '/' . $extension . '.inc'; - - if (is_file($file)) { - require_once $file; - } - - // Give every enabled extension a chance to alter the theme registry. - $hook = $info['theme'] . '_extension_' . $extension . '_theme_registry_alter'; - - if (function_exists($hook)) { - $hook($registry); - } - } - } - - // Override pre-process and process functions for cases where we want to take - // a completely different approach than what core does by default. In some - // cases this is much more practical than altering or undoing things that were - // added or changed in a previous hook. - $overrides = array( - 'html' => array( - 'process' => array( - 'template_process_html' => 'omega_template_process_html_override', - ), - ), - ); - - foreach ($overrides as $hook => $types) { - foreach ($types as $type => $overrides) { - foreach ($overrides as $original => $override) { - if (($index = array_search($original, $registry[$hook][$mapping[$type]], TRUE)) !== FALSE) { - array_splice($registry[$hook][$mapping[$type]], $index, 1, $override); - } - } - } - } - - // Fix for integration with the theme developer module. - if (module_exists('devel_themer')) { - devel_themer_theme_registry_alter($registry); - } -} - -/** - * Initializes the attributes array from the classes array. - */ -function omega_initialize_attributes(&$variables) { - $variables['attributes_array']['class'] = &$variables['classes_array']; -} - -/** - * Processes the attributes and classes array. - */ -function omega_cleanup_attributes(&$variables, $hook) { - // Break the reference between the classes array and the attributes array. - $classes = !empty($variables['classes_array']) ? $variables['classes_array'] : array(); - unset($variables['attributes_array']['class'], $variables['classes_array']); - - // Clone the attributes array classes into the classes array for backwards - // compatibility reasons. Note that we do not recommend using the classes in - // classes array anyways. - $variables['classes_array'] = $classes; - - if (!empty($classes)) { - // Only write the 'class' attribute if it's not empty. - $variables['attributes_array']['class'] = $classes; - } -} - -/** - * Overrides template_process_html(). - */ -function omega_template_process_html_override(&$variables) { - // Render page_top and page_bottom into top level variables. - $variables['page_top'] = drupal_render($variables['page']['page_top']); - $variables['page_bottom'] = drupal_render($variables['page']['page_bottom']); - // Place the rendered HTML for the page body into a top level variable. - $variables['page'] = $variables['page']['#children']; - $variables['page_bottom'] .= omega_get_js('footer'); - - $variables['head'] = drupal_get_html_head(); - $variables['css'] = drupal_add_css(); - $variables['styles'] = drupal_get_css(); - $variables['scripts'] = omega_get_js(); -} - -/** - * Implements hook_block_list_alter(). - */ -function omega_block_list_alter(&$blocks) { - if (omega_extension_enabled('layouts') && $layout = omega_layout()) { - $callers = debug_backtrace(); - - // Check if drupal_alter() was invoked from _block_load_blocks(). This is - // required as we do not want to interfere with contrib modules like ctools. - if ($callers['2']['function'] === '_block_load_blocks') { - // In case we are currently serving a Omega layout we have to make sure that - // we don't process blocks that will never be shown because the active layout - // does not even have a region for them. - foreach ($blocks as $id => $block) { - if (!array_key_exists($block->region, $layout['info']['regions'])) { - unset($blocks[$id]); - } - } - } - } - - // Hide the main content block on the front page if the theme settings are - // configured that way. - if (!omega_theme_get_setting('omega_toggle_front_page_content', TRUE) && drupal_is_front_page()) { - foreach ($blocks as $key => $block) { - if ($block->module == 'system' && $block->delta == 'main') { - unset($blocks[$key]); - } - } - - drupal_set_page_content(); - } -} - -/** - * Implements hook_page_delivery_callback_alter(). - */ -function omega_page_delivery_callback_alter(&$callback) { - if (module_exists('overlay') && overlay_display_empty_page()) { - $callback = 'omega_override_overlay_deliver_empty_page'; - } -} - -/** - * Delivery callback to display an empty page. - * - * This function is used to print out a bare minimum empty page which still has - * the scripts and styles necessary in order to trigger the overlay to close. - */ -function omega_override_overlay_deliver_empty_page() { - $empty_page = '' . drupal_get_css() . omega_get_js() . ''; - print $empty_page; - drupal_exit(); -} - -/** - * Implements hook_page_alter(). - */ -function omega_page_alter(&$page) { - // Place dummy blocks in each region if the 'demo regions' setting is active - // to force regions to be rendered. - if (omega_extension_enabled('development') && omega_theme_get_setting ('omega_demo_regions', TRUE) && user_access('administer site configuration')) { - $item = menu_get_item(); - - // Don't interfere with the 'Demonstrate block regions' page. - if (strpos('admin/structure/block/demo/', $item['path']) !== 0) { - $regions = system_region_list($GLOBALS['theme_key'], REGIONS_VISIBLE); - $configured = omega_theme_get_setting('omega_demo_regions_list', array_keys($regions)); - - // We don't explicitly load possible layout regions and instead really - // just show demo regions for those regions that we can actually place - // blocks in. Hence, there will only be demo regions for those regions - // that have been declared through the theme's .info file. - foreach (array_intersect_key($regions, array_flip($configured)) as $region => $name) { - if (empty($page[$region])) { - $page[$region]['#theme_wrappers'] = array('region'); - $page[$region]['#region'] = $region; - } - - $page[$region]['#name'] = $name; - $page[$region]['#debug'] = TRUE; - } - } - } - - if (omega_extension_enabled('compatibility') && omega_theme_get_setting('omega_chrome_edge', TRUE) && omega_theme_get_setting('omega_chrome_notice', TRUE)) { - $supported = omega_theme_get_setting('omega_internet_explorer_support', FALSE); - - $page['page_top']['omega_chrome'] = array( - '#theme' => 'omega_chrome', - '#pre_render' => array('drupal_pre_render_conditional_comments'), - '#browsers' => array( - 'IE' => !$supported ? TRUE : 'lte IE ' . $supported, - '!IE' => FALSE, - ), - ); - } -} - -/** - * Implements hook_html_head_alter(). - */ -function omega_html_head_alter(&$head) { - // Simplify the meta tag for character encoding. - $head['system_meta_content_type']['#attributes'] = array('charset' => str_replace('text/html; charset=', '', $head['system_meta_content_type']['#attributes']['content'])); -} - -/** - * Implements hook_omega_theme_libraries_info(). - */ -function omega_omega_theme_libraries_info($theme) { - $libraries['selectivizr'] = array( - 'name' => t('Selectivizr'), - 'description' => t('Selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. Simply include the script in your pages and selectivizr will do the rest.'), - 'vendor' => 'Keith Clark', - 'vendor url' => 'http://selectivizr.com/', - 'package' => t('Polyfills'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/selectivizr/selectivizr.min.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 110, - 'every_page' => TRUE, - ), - ), - ), - 'variants' => array( - 'source' => array( - 'name' => t('Source'), - 'description' => t('During development it might be useful to include the source files instead of the minified version.'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/selectivizr/selectivizr.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 110, - 'every_page' => TRUE, - ), - ), - ), - ), - ), - ); - - $libraries['respond'] = array( - 'name' => t('Respond'), - 'description' => t('Respond is a fast & lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more). Note: This library requires CSS aggregation to be enabled for it to work properly.', array('!url' => url('admin/config/development/performance', array('alias' => TRUE)))), - 'vendor' => 'Scott Jehl', - 'vendor url' => 'http://scottjehl.com/', - 'package' => t('Polyfills'), - 'callbacks' => array('omega_extension_library_requirements_css_aggregation'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/respond/respond.min.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 120, - 'every_page' => TRUE, - ), - ), - ), - 'variants' => array( - 'source' => array( - 'name' => t('Source'), - 'description' => t('During development it might be useful to include the source files instead of the minified version.'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/respond/respond.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 120, - 'every_page' => TRUE, - ), - ), - ), - ), - ), - ); - - $libraries['css3pie'] = array( - 'name' => t('CSS3 PIE'), - 'description' => t('PIE makes Internet Explorer 6-9 capable of rendering several of the most useful CSS3 decoration features.'), - 'vendor' => 'Keith Clark', - 'vendor url' => 'http://css3pie.com/', - 'options form' => 'omega_library_pie_options_form', - 'package' => t('Polyfills'), - 'files' => array(), - 'variants' => array( - 'js' => array( - 'name' => t('JavaScript'), - 'description' => t('While the .htc behavior is still the recommended approach for most users, the JS version has some advantages that may be a better fit for some users.'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/pie/PIE.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ), - ), - ), - ), - ), - ); - - $settings = omega_theme_get_setting('omega_libraries'); - if (!empty($settings['css3pie']['selectors'])) { - // Add the generated .css file to the corresponding variant. - $destination = file_create_url('public://omega/' . $theme ); - $destination = substr($destination, strlen($GLOBALS['base_url']) + 1); - file_prepare_directory($destination, FILE_CREATE_DIRECTORY); - - // Save the generated CSS in the public file system. - $file = $destination . '/pie-selectors.css'; - $htc = base_path() . omega_theme_trail_file('libraries/pie/PIE.htc'); - $contents = implode(",", $settings['css3pie']['selectors']) . "{behavior:url($htc)}"; - file_unmanaged_save_data($contents, $file, FILE_EXISTS_REPLACE); - - $libraries['css3pie']['files']['css'][$file] = array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ); - - // Save the generated JS in the public file system. - $file = $destination . '/pie-selectors.js'; - $contents = '$(function(){Drupal.behaviors.css3pie={attach:function(context,settings){if(window.PIE){$("' . implode(",", $settings['css3pie']['selectors']) . '").each(function(){PIE.attach(this)})}}}})(jQuery);'; - file_unmanaged_save_data($contents, $file, FILE_EXISTS_REPLACE); - - $libraries['css3pie']['variants']['js']['files']['js'][$file] = array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ); - } - - $libraries['html5shiv'] = array( - 'name' => t('HTML5 Shiv'), - 'description' => t('This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer, as well as default HTML5 styling in Internet Explorer 6 - 9, Safari 4.x (and iPhone 3.x), and Firefox 3.x.'), - 'vendor' => 'Alexander Farkas', - 'package' => t('Polyfills'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/html5shiv/html5shiv.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ), - omega_theme_trail_file('libraries/html5shiv/html5shiv-printshiv.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ), - ), - ), - 'variants' => array( - 'source' => array( - 'name' => t('Source'), - 'description' => t('During development it might be useful to include the source files instead of the minified version.'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('libraries/html5shiv/html5shiv.min.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ), - omega_theme_trail_file('libraries/html5shiv/html5shiv-printshiv.min.js') => array( - 'browsers' => array('IE' => '(gte IE 6)&(lte IE 8)', '!IE' => FALSE), - 'weight' => 100, - 'every_page' => TRUE, - ), - ), - ), - ), - ), - ); - - $libraries['messages'] = array( - 'name' => t('Discardable messages'), - 'description' => t("Adds a 'close' button to each message."), - 'package' => t('Goodies'), - 'files' => array( - 'js' => array( - omega_theme_trail_file('js/omega.messages.min.js') => array( - 'weight' => -100, - 'every_page' => TRUE, - ), - ), - 'css' => array( - omega_theme_trail_file('css/omega.messages.css') => array( - 'weight' => -100, - 'every_page' => TRUE, - ), - ), - ), - ); - - return $libraries; -} - -/** - * Theme callback for rendering an Omega layout. - */ -function omega_omega_layout($variables) { - drupal_process_attached(array('#attached' => $variables['omega_layout']['attached'])); - - // Clean up the theme hook suggestion so we don't end up in an infinite loop. - unset($variables['theme_hook_suggestion'], $variables['theme_hook_suggestions']); - return theme($variables['omega_layout']['template'], $variables); -} - -/** - * Shows a notice when Google Chrome Frame is not installed. - */ -function omega_omega_chrome($variables) { - $message = t('You are using an outdated browser! Upgrade your browser today or install Google Chrome Frame to better experience this site.', array( - '!upgrade' => url('http://browsehappy.com'), - '!install' => url('http://www.google.com/chromeframe', array( - 'query' => array('redirect' => 'true') - )), - )); - - return '

' . $message . '

'; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/aggregator/aggregator-feed-source.tpl.php --- a/sites/all/themes/omega/templates/aggregator/aggregator-feed-source.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ - -
- - -
- -
-
- -
-
- -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/aggregator/aggregator-item.tpl.php --- a/sites/all/themes/omega/templates/aggregator/aggregator-item.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ - -
-

- -

- -
- - - - - -
- - -
- -
- - - -
- : -
- - -
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/aggregator/aggregator-wrapper.tpl.php --- a/sites/all/themes/omega/templates/aggregator/aggregator-wrapper.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ - -
- - -
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/block/block--minimal.tpl.php --- a/sites/all/themes/omega/templates/block/block--minimal.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -subject: Block title. - * - $content: Block content. - * - $block->module: Module that generated the block. - * - $block->delta: An ID for the block, unique within each module. - * - $block->region: The block region embedding the current block. - * - $classes: String of classes that can be used to style contextually through - * CSS. It can be manipulated through the variable $classes_array from - * preprocess functions. The default values can be one or more of the - * following: - * - block: The current template type, i.e., "theming hook". - * - block-[module]: The module generating the block. For example, the user - * module is responsible for handling the default user navigation block. In - * that case the class would be 'block-user'. - * - $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_suffix (array): An array containing additional output populated by - * modules, intended to be displayed after the main title tag that appears in - * the template. - * - * Helper variables: - * - $classes_array: Array of html class attribute values. It is flattened - * into a string within the variable $classes. - * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region. - * - $zebra: Same output as $block_zebra but independent of any block region. - * - $block_id: Counter dependent on each block region. - * - $id: Same output as $block_id but independent of any block region. - * - $is_front: Flags true when presented in the front page. - * - $logged_in: Flags true when the current user is a logged-in member. - * - $is_admin: Flags true when the current user is an administrator. - * - $block_html_id: A valid HTML ID and guaranteed unique. - * - * @see template_preprocess() - * @see template_preprocess_block() - * @see template_process() - * - * @ingroup themeable - */ -?> - -subject): ?> - >subject; ?> - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/block/block--nav.tpl.php --- a/sites/all/themes/omega/templates/block/block--nav.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -subject: Block title. - * - $content: Block content. - * - $block->module: Module that generated the block. - * - $block->delta: An ID for the block, unique within each module. - * - $block->region: The block region embedding the current block. - * - $classes: String of classes that can be used to style contextually through - * CSS. It can be manipulated through the variable $classes_array from - * preprocess functions. The default values can be one or more of the - * following: - * - block: The current template type, i.e., "theming hook". - * - block-[module]: The module generating the block. For example, the user - * module is responsible for handling the default user navigation block. In - * that case the class would be 'block-user'. - * - $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_suffix (array): An array containing additional output populated by - * modules, intended to be displayed after the main title tag that appears in - * the template. - * - * Helper variables: - * - $classes_array: Array of html class attribute values. It is flattened - * into a string within the variable $classes. - * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region. - * - $zebra: Same output as $block_zebra but independent of any block region. - * - $block_id: Counter dependent on each block region. - * - $id: Same output as $block_id but independent of any block region. - * - $is_front: Flags true when presented in the front page. - * - $logged_in: Flags true when the current user is a logged-in member. - * - $is_admin: Flags true when the current user is an administrator. - * - $block_html_id: A valid HTML ID and guaranteed unique. - * - * @see template_preprocess() - * @see template_preprocess_block() - * @see template_process() - * - * @ingroup themeable - */ -?> -> - - subject): ?> - >subject; ?> - - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/block/block-admin-display-form.tpl.php --- a/sites/all/themes/omega/templates/block/block-admin-display-form.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -region_title: Region title for the listed block. - * - $data->block_title: Block title. - * - $data->region_select: Drop-down menu for assigning a region. - * - $data->weight_select: Drop-down menu for setting weights. - * - $data->configure_link: Block configuration link. - * - $data->delete_link: For deleting user added blocks. - * - * @see template_preprocess_block_admin_display_form() - * @see theme_block_admin_display() - * - * @ingroup themeable - */ -?> - - - - - - - - - - - - $title): ?> - - - - - - - $data): ?> - - - - - - - - - - - -
block_title; ?>region_select; ?>weight_select; ?>configure_link; ?>delete_link; ?>
- - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/block/block.tpl.php --- a/sites/all/themes/omega/templates/block/block.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -subject: Block title. - * - $content: Block content. - * - $block->module: Module that generated the block. - * - $block->delta: An ID for the block, unique within each module. - * - $block->region: The block region embedding the current block. - * - $classes: String of classes that can be used to style contextually through - * CSS. It can be manipulated through the variable $classes_array from - * preprocess functions. The default values can be one or more of the - * following: - * - block: The current template type, i.e., "theming hook". - * - block-[module]: The module generating the block. For example, the user - * module is responsible for handling the default user navigation block. In - * that case the class would be 'block-user'. - * - $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_suffix (array): An array containing additional output populated by - * modules, intended to be displayed after the main title tag that appears in - * the template. - * - * Helper variables: - * - $classes_array: Array of html class attribute values. It is flattened - * into a string within the variable $classes. - * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region. - * - $zebra: Same output as $block_zebra but independent of any block region. - * - $block_id: Counter dependent on each block region. - * - $id: Same output as $block_id but independent of any block region. - * - $is_front: Flags true when presented in the front page. - * - $logged_in: Flags true when the current user is a logged-in member. - * - $is_admin: Flags true when the current user is an administrator. - * - $block_html_id: A valid HTML ID and guaranteed unique. - * - * @see template_preprocess() - * @see template_preprocess_block() - * @see template_process() - * - * @ingroup themeable - */ -?> -> - - subject): ?> - >subject; ?> - - - > - -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/book/book-navigation.tpl.php --- a/sites/all/themes/omega/templates/book/book-navigation.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ - - -
- - - - - - -
- diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/comment/comment-wrapper.tpl.php --- a/sites/all/themes/omega/templates/comment/comment-wrapper.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ - -> - type != 'forum'): ?> - - > - - - - - - - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/comment/comment.tpl.php --- a/sites/all/themes/omega/templates/comment/comment.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -created variable. - * - $changed: Formatted date and time for when the comment was last changed. - * Preprocess functions can reformat it by calling format_date() with the - * desired parameters on the $comment->changed variable. - * - $new: New comment marker. - * - $permalink: Comment permalink. - * - $submitted: Submission information created from $author and $created during - * template_preprocess_comment(). - * - $user_picture: The comment author's picture from user-picture.tpl.php. - * - $signature: Authors signature. - * - $status: Comment status. Possible values are: - * comment-unpublished, comment-published or comment-preview. - * - $title: Linked title. - * - $classes: String of classes that can be used to style contextually through - * CSS. It can be manipulated through the variable $classes_array from - * preprocess functions. The default values can be one or more of the - * following: - * - comment: The current template type, i.e., "theming hook". - * - comment-by-anonymous: Comment by an unregistered user. - * - comment-by-node-author: Comment by the author of the parent node. - * - comment-preview: When previewing a new or edited comment. - * The following applies only to viewers who are registered users: - * - comment-unpublished: An unpublished comment visible only to - * administrators. - * - comment-by-viewer: Comment by the user currently viewing the page. - * - comment-new: New comment since last the visit. - * - $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_suffix (array): An array containing additional output populated by - * modules, intended to be displayed after the main title tag that appears in - * the template. - * - * These two variables are provided for context: - * - $comment: Full comment object. - * - $node: Node object the comments are attached to. - * - * Other variables: - * - $classes_array: Array of html class attribute values. It is flattened - * into a string within the variable $classes. - * - * @see template_preprocess() - * @see template_preprocess_comment() - * @see template_process() - * @see theme_comment() - */ -?> -> - - - - - > - - -
- - - -
- - > - - -
- -
- - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/forum/forum-icon.tpl.php --- a/sites/all/themes/omega/templates/forum/forum-icon.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ - -
- -
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/forum/forum-list.tpl.php --- a/sites/all/themes/omega/templates/forum/forum-list.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -is_container: TRUE if the forum can contain other forums. FALSE - * if the forum can contain only topics. - * - $forum->depth: How deep the forum is in the current hierarchy. - * - $forum->zebra: 'even' or 'odd' string used for row class. - * - $forum->icon_class: 'default' or 'new' string used for forum icon class. - * - $forum->icon_title: Text alternative for the forum icon. - * - $forum->name: The name of the forum. - * - $forum->link: The URL to link to this forum. - * - $forum->description: The description of this forum. - * - $forum->new_topics: TRUE if the forum contains unread posts. - * - $forum->new_url: A URL to the forum's unread posts. - * - $forum->new_text: Text for the above URL, which tells how many new posts. - * - $forum->old_topics: A count of posts that have already been read. - * - $forum->num_posts: The total number of posts in the forum. - * - $forum->last_reply: Text representing the last time a forum was posted or - * commented in. - * - $forum_id: Forum ID for the current forum. Parent to all items within the - * $forums array. - * - * @see template_preprocess_forum_list() - * @see theme_forum_list() - * - * @ingroup themeable - */ -?> - - - - - - - - - - - $forum): ?> - - - - is_container): ?> - - - - - - - - - -
is_container ? 'colspan="4" class="forum-topic__details forum-topic--container"' : 'class="forum-topic__details forum-topic--forum"'; ?>> - ', $forum->depth); ?> - -
- icon_title; ?> -
- - - - description): ?> -
description; ?>
- -
- num_topics ?> - new_topics): ?> -
- new_text; ?> - -
num_posts ?>last_reply ?>
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/forum/forum-topic-list.tpl.php --- a/sites/all/themes/omega/templates/forum/forum-topic-list.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -icon: The icon to display. - * - $topic->moved: A flag to indicate whether the topic has been moved to - * another forum. - * - $topic->title: The title of the topic. Safe to output. - * - $topic->message: If the topic has been moved, this contains an - * explanation and a link. - * - $topic->zebra: 'even' or 'odd' string used for row class. - * - $topic->comment_count: The number of replies on this topic. - * - $topic->new_replies: A flag to indicate whether there are unread - * comments. - * - $topic->new_url: If there are unread replies, this is a link to them. - * - $topic->new_text: Text containing the translated, properly pluralized - * count. - * - $topic->created: A string representing when the topic was posted. Safe - * to output. - * - $topic->last_reply: An outputtable string representing when the topic was - * last replied to. - * - $topic->timestamp: The raw timestamp this topic was posted. - * - $topic_id: Numeric ID for the current forum topic. - * - * @see template_preprocess_forum_topic_list() - * @see theme_forum_topic_list() - * - * @ingroup themeable - */ -?> - - - - - - - - - - moved): ?> - - - - - - - - -
icon; ?> -
- title; ?> -
-
- created; ?> -
-
message; ?> - comment_count; ?> - new_replies): ?> -
- new_text; ?> - -
last_reply; ?>
- diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/forum/forums.tpl.php --- a/sites/all/themes/omega/templates/forum/forums.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ - - -
- - -
- diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/node/node.tpl.php --- a/sites/all/themes/omega/templates/node/node.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,110 +0,0 @@ -body becomes $body. When needing to access - * a field's raw values, developers/themers are strongly encouraged to use these - * variables. Otherwise they will have to explicitly specify the desired field - * language, e.g. $node->body['en'], thus overriding any language negotiation - * rule that was previously applied. - * - * @see template_preprocess() - * @see template_preprocess_node() - * @see template_process() - */ -?> -> - -
- - - > - - -
- - - -
- - -
- - - > - - - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/panelizer/panelizer-view-mode.tpl.php --- a/sites/all/themes/omega/templates/panelizer/panelizer-view-mode.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -> - - - < > - - - - - - > - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/poll/poll-bar--block.tpl.php --- a/sites/all/themes/omega/templates/poll/poll-bar--block.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ - -
-
-
-
-
-
- % -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/poll/poll-bar.tpl.php --- a/sites/all/themes/omega/templates/poll/poll-bar.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ - -
-
-
-
-
-
- % () -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/poll/poll-results--block.tpl.php --- a/sites/all/themes/omega/templates/poll/poll-results--block.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ - -
-

- -
- $votes)); ?> -
-
- diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/poll/poll-results.tpl.php --- a/sites/all/themes/omega/templates/poll/poll-results.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ - -
- -
- $votes)); ?> -
- - - -
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/poll/poll-vote.tpl.php --- a/sites/all/themes/omega/templates/poll/poll-vote.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ - -
-
- -

- - -
- -
- - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/region/region--minimal.tpl.php --- a/sites/all/themes/omega/templates/region/region--minimal.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/region/region--sidebar.tpl.php --- a/sites/all/themes/omega/templates/region/region--sidebar.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ - - - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/region/region.tpl.php --- a/sites/all/themes/omega/templates/region/region.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ - - - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/search/search-result.tpl.php --- a/sites/all/themes/omega/templates/search/search-result.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ - - * - * - * - * - * @endcode - * - * To check for all available data within $info_split, use the code below. - * @code - * '. check_plain(print_r($info_split, 1)) .''; ?> - * @endcode - * - * @see template_preprocess() - * @see template_preprocess_search_result() - * @see template_process() - * - * @ingroup themeable - */ -?> -
> - -

>

- - -

>

- - -
- -
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/search/search-results.tpl.php --- a/sites/all/themes/omega/templates/search/search-results.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ - - -

-
- -
- - -

- - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/system/html.tpl.php --- a/sites/all/themes/omega/templates/system/html.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -language contains its textual representation. - * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'. - * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document. - * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data. - * - $head_title: A modified version of the page title, for use in the TITLE - * tag. - * - $head_title_array: (array) An associative array containing the string parts - * that were used to generate the $head_title variable, already prepared to be - * output as TITLE tag. The key/value pairs may contain one or more of the - * following, depending on conditions: - * - title: The title of the current page, if any. - * - name: The name of the site. - * - slogan: The slogan of the site, if any, and if there is no title. - * - $head: Markup for the HEAD section (including meta tags, keyword tags, and - * so on). - * - $styles: Style tags necessary to import all CSS files for the page. - * - $scripts: Script tags necessary to load the JavaScript files and settings - * for the page. - * - $page_top: Initial markup from any modules that have altered the - * page. This variable should always be output first, before all other dynamic - * content. - * - $page: The rendered page content. - * - $page_bottom: Final closing markup from any modules that have altered the - * page. This variable should always be output last, after all other dynamic - * content. - * - $classes String of classes that can be used to style contextually through - * CSS. - * - * @see template_preprocess() - * @see template_preprocess_html() - * @see template_process() - */ -?> - - - - - - - > - - > - - - <?php print $head_title; ?> - - - - -> - - - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/system/maintenance-page.tpl.php --- a/sites/all/themes/omega/templates/system/maintenance-page.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ - - - - - - - - - - - - - <?php print $head_title; ?> - - - - -> -
- - -
-
-

- - -
-
- -
- -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/system/page.tpl.php --- a/sites/all/themes/omega/templates/system/page.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,122 +0,0 @@ - -
- - -
-
- - - - - -

- - - - - - - - - - -
- - - -
- -
- -
-
diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/taxonomy/taxonomy-term.tpl.php --- a/sites/all/themes/omega/templates/taxonomy/taxonomy-term.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ - -> - -

- - - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/user/user-profile-category.tpl.php --- a/sites/all/themes/omega/templates/user/user-profile-category.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ - -> -
- -

- -
- - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/user/user-profile-item.tpl.php --- a/sites/all/themes/omega/templates/user/user-profile-item.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ - -> - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/user/user-profile.tpl.php --- a/sites/all/themes/omega/templates/user/user-profile.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -field_example has a - * variable $field_example defined. When needing to access a field's raw - * values, developers/themers are strongly encouraged to use these - * variables. Otherwise they will have to explicitly specify the desired - * field language, e.g. $account->field_example['en'], thus overriding any - * language negotiation rule that was previously applied. - * - * @see template_preprocess_user_profile() - */ -?> -> - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/views/views-view-grid.tpl.php --- a/sites/all/themes/omega/templates/views/views-view-grid.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ - - -

- -> - - - - - $columns): ?> - > - $item): ?> - > - - - - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/views/views-view-list.tpl.php --- a/sites/all/themes/omega/templates/views/views-view-list.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ - - - -

- - - $row): ?> - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/views/views-view-table.tpl.php --- a/sites/all/themes/omega/templates/views/views-view-table.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ - -> - - - - - - - $label): ?> - > - - - - - - - - $row): ?> - > - $content): ?> - > - - - - - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/templates/views/views-view-unformatted.tpl.php --- a/sites/all/themes/omega/templates/views/views-view-unformatted.tpl.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ - - -

- - $row): ?> - > - - - diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme-settings.php --- a/sites/all/themes/omega/theme-settings.php Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,215 +0,0 @@ - $name) { - $path = drupal_get_path('theme', $theme); - - $filename = DRUPAL_ROOT . '/' . $path . '/template.php'; - if (file_exists($filename)) { - require_once $filename; - } - - $filename = DRUPAL_ROOT . '/' . $path . '/theme-settings.php'; - if (file_exists($filename)) { - require_once $filename; - } - } - - // Get the admin theme so we can set a class for styling this form. - $admin = drupal_html_class(variable_get('admin_theme', $GLOBALS['theme'])); - $form['#prefix'] = '
'; - $form['#suffix'] = '
'; - - // Add some custom styling and functionality to our theme settings form. - $form['#attached']['css'][] = drupal_get_path('theme', 'omega') . '/css/omega.admin.css'; - $form['#attached']['js'][] = drupal_get_path('theme', 'omega') . '/js/omega.admin.min.js'; - - // Collapse all the core theme settings tabs in order to have the form actions - // visible all the time without having to scroll. - foreach (element_children($form) as $key) { - if ($form[$key]['#type'] == 'fieldset') { - $form[$key]['#collapsible'] = TRUE; - $form[$key]['#collapsed'] = TRUE; - } - } - - if ($extensions = omega_extensions(NULL, TRUE)) { - $form['omega'] = array( - '#type' => 'vertical_tabs', - '#weight' => -10, - ); - - // Load the theme settings for all enabled extensions. - foreach ($extensions as $extension => $info) { - $form['omega'][$extension] = array( - '#type' => 'fieldset', - '#title' => $info['info']['name'], - '#attributes' => array( - 'class' => array('omega-extension'), - ), - ); - - $errors = array(); - if (!empty($info['info']['dependencies'])) { - foreach ($info['info']['dependencies'] as $dependency) { - $dependency = drupal_parse_dependency($dependency); - - // Check if the module exists. - if (!$module = system_get_info('module', $dependency['name'])) { - $errors[] = t('This extension requires the @module module.', array( - '@module' => ucwords(str_replace('_', ' ', $dependency['name'])), - )); - } - // Check if the module version is compatible. - elseif (($version = omega_check_incompatibility($dependency, $module['version'])) !== NULL) { - $errors[] = t('This extension requires @module @version. The currently installed version is @installed.', array( - '@module' => $module['name'], - '@version' => $version, - '@installed' => !empty($module['version']) ? $module['version'] : t('undetermined'), - )); - } - } - - if (!empty($errors)) { - $form['omega'][$extension]['errors'] = array( - '#type' => 'item', - '#title' => t('Missing requirements'), - '#markup' => '
  • ' . implode('
  • ', $errors) . '
', - '#weight' => -20, - // Abuse the #name attribute to add a class to the form item. - '#name' => 'omega-requirements', - ); - } - } - - // Disable all options if there were any errors. - $form['omega'][$extension]['#disabled'] = !empty($errors) || variable_get('omega_toggle_extension_' . $extension) !== NULL; - - $form['omega'][$extension]['omega_toggle_extension_' . $extension] = array( - '#type' => 'checkbox', - '#title' => t('Enable @extension extension', array('@extension' => $info['info']['name'])) . (variable_get('omega_toggle_extension_' . $extension) !== NULL ? ' (' . t('overridden') . ')' : ''), - '#description' => t('This setting can be overridden with an equally named variable (@name) so you can control it on a per-environment basis by setting it in your settings.php file.', array('@name' => 'omega_toggle_extension_' . $extension)), - '#default_value' => omega_extension_enabled($extension), - '#weight' => -10, - ); - - $element = array(); - - // Load the implementation for this extensions and invoke the according - // hook. - $file = $info['path'] . '/' . $extension . '.settings.inc'; - if (is_file($file)) { - require_once $file; - } - - $function = $info['theme'] . '_extension_' . $extension . '_settings_form'; - if (function_exists($function)) { - // By default, each extension resides in a vertical tab - $element = $function($element, $form, $form_state) + array( - '#type' => 'fieldset', - '#title' => t('@extension extension configuration', array('@extension' => $info['info']['name'])), - '#description' => $info['info']['description'], - '#states' => array( - 'disabled' => array( - 'input[name="omega_toggle_extension_' . $extension . '"]' => array('checked' => FALSE), - ), - ), - ); - } - - drupal_alter('extension_' . $extension . '_settings_form', $element, $form, $form_state); - - if (element_children($element)) { - // Append the extension form to the theme settings form if it has any - // children. - $form['omega'][$extension]['settings'] = $element; - } - } - } - - // Custom option for toggling the main content blog on the front page. - $form['theme_settings']['omega_toggle_front_page_content'] = array( - '#type' => 'checkbox', - '#title' => t('Front page content'), - '#description' => t('Allow the main content block to be rendered on the front page.'), - '#default_value' => omega_theme_get_setting('omega_toggle_front_page_content', TRUE), - ); - - // We need a custom form submit handler for processing some of the values. - $form['#submit'][] = 'omega_theme_settings_form_submit'; - - // Store the extensions in an array so we can loop over them in the submit - // callback. - $form_state['extensions'] = array_keys($extensions); -} - -/** - * Form submit handler for the theme settings form. - */ -function omega_theme_settings_form_submit($form, &$form_state) { - // Clear the theme cache. - $theme = $form_state['build_info']['args'][0]; - cache_clear_all('omega:' . $theme . ':', 'cache', TRUE); - - // We also need to clear the static right away. - drupal_static_reset('omega_extensions'); - - // Rebuild the theme registry. This has quite a performance impact but since - // this only happens once after we (re-)saved the theme settings this is fine. - // Also, this is actually required because we are caching certain things in - // the theme registry. - drupal_theme_rebuild(); - - // We really don't want to reset theme settings for disabled extensions. - foreach ($form_state['extensions'] as $extension) { - if (!$form_state['values']['omega_toggle_extension_' . $extension]) { - _omega_retain_extension_settings($form, $form_state, $extension, $theme); - } - } - - // This is a relict from the vertical tabs and should be removed so it doesn't - // end up in the theme settings array. - unset($form_state['values']['omega__active_tab']); -} - -/** - * Helper function for retaining settings of an extension. - */ -function _omega_retain_extension_settings($form, &$form_state, $extension, $theme, $parents = array()) { - $current = array_merge(array('omega', $extension, 'settings'), $parents); - - if ($items = drupal_array_get_nested_value($form, $current)) { - foreach (element_children($items) as $key) { - if (array_key_exists($key, $form_state['values'])) { - $form_state['values'][$key] = omega_theme_get_setting($key, NULL, $theme); - } - - $next = array_merge($parents, array($key)); - _omega_retain_extension_settings($form, $form_state, $extension, $theme, $next); - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/admin-block.theme.inc --- a/sites/all/themes/omega/theme/admin-block.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -'; - if (!empty($block['title'])) { - $output .= '

' . $block['title'] . '

'; - } - if (!empty($block['content'])) { - $output .= '
' . $block['content'] . '
'; - } - else { - $output .= '
' . $block['description'] . '
'; - } - $output .= ''; - - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/breadcrumb.theme.inc --- a/sites/all/themes/omega/theme/breadcrumb.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -' . t('You are here') . ''; - - // Override Drupal core breadcrumb item imploding (no arrow). - $output .= ''; - return $output; - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/field.theme.inc --- a/sites/all/themes/omega/theme/field.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -' . $variables['label'] . ': '; - } - - // Render the items. - $output .= '
'; - foreach ($variables['items'] as $delta => $item) { - $classes = 'field__item ' . ($delta % 2 ? 'odd' : 'even'); - $output .= '
' . drupal_render($item) . '
'; - } - $output .= '
'; - - // Render the top-level DIV. - $output = '
' . $output . '
'; - - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/image-style-preview.theme.inc --- a/sites/all/themes/omega/theme/image-style-preview.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ - $original_image['height']) { - $original_width = min($original_image['width'], $sample_width); - $original_height = round($original_width / $original_image['width'] * $original_image['height']); - } - else { - $original_height = min($original_image['height'], $sample_height); - $original_width = round($original_height / $original_image['height'] * $original_image['width']); - } - $original_attributes = array_intersect_key($original_image, array('width' => '', 'height' => '')); - $original_attributes['style'] = 'width: ' . $original_width . 'px; height: ' . $original_height . 'px;'; - - // Set up preview file information. - $preview_file = image_style_path($style['name'], $original_path); - if (!file_exists($preview_file)) { - image_style_create_derivative($style, $original_path, $preview_file); - } - $preview_image = image_get_info($preview_file); - if ($preview_image['width'] > $preview_image['height']) { - $preview_width = min($preview_image['width'], $sample_width); - $preview_height = round($preview_width / $preview_image['width'] * $preview_image['height']); - } - else { - $preview_height = min($preview_image['height'], $sample_height); - $preview_width = round($preview_height / $preview_image['height'] * $preview_image['width']); - } - $preview_attributes = array_intersect_key($preview_image, array('width' => '', 'height' => '')); - $preview_attributes['style'] = 'width: ' . $preview_width . 'px; height: ' . $preview_height . 'px;'; - - // In the previews, timestamps are added to prevent caching of images. - $output = '
'; - - // Build the preview of the original image. - $original_url = file_create_url($original_path); - $output .= '
'; - $output .= t('original') . ' (' . l(t('view actual size'), $original_url) . ')'; - $output .= '
'; - $output .= '' . theme('image', array('path' => $original_path, 'alt' => t('Sample original image'), 'title' => '', 'attributes' => $original_attributes)) . ''; - $output .= '
' . $original_image['height'] . 'px
'; - $output .= '
' . $original_image['width'] . 'px
'; - $output .= '
'; // End preview-image. - $output .= '
'; // End preview-image-wrapper. - - // Build the preview of the image style. - $preview_url = file_create_url($preview_file) . '?cache_bypass=' . REQUEST_TIME; - $output .= '
'; - $output .= check_plain($style['name']) . ' (' . l(t('view actual size'), file_create_url($preview_file) . '?' . time()) . ')'; - $output .= '
'; - $output .= '' . theme('image', array('path' => $preview_url, 'alt' => t('Sample modified image'), 'title' => '', 'attributes' => $preview_attributes)) . ''; - $output .= '
' . $preview_image['height'] . 'px
'; - $output .= '
' . $preview_image['width'] . 'px
'; - $output .= '
'; // End preview-image. - $output .= '
'; // End preview-image-wrapper. - - $output .= '
'; // End image-style-preview. - - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/item-list.theme.inc --- a/sites/all/themes/omega/theme/item-list.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -' . $title . ''; - } - - if (!empty($items)) { - $output .= "<$type" . drupal_attributes($attributes) . '>'; - $num_items = count($items); - $i = 0; - foreach ($items as $item) { - $attributes = array(); - $children = array(); - $data = ''; - $i++; - if (is_array($item)) { - foreach ($item as $key => $value) { - if ($key == 'data') { - $data = $value; - } - elseif ($key == 'children') { - $children = $value; - } - else { - $attributes[$key] = $value; - } - } - } - else { - $data = $item; - } - if (count($children) > 0) { - // Render nested list. - $data .= theme_item_list(array('items' => $children, 'title' => NULL, 'type' => $type, 'attributes' => $attributes)); - } - $output .= '' . $data . "\n"; - } - $output .= ""; - } - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/mark.theme.inc --- a/sites/all/themes/omega/theme/mark.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -uid) { - if ($type == MARK_NEW) { - return ' ' . t('new') . ''; - } - elseif ($type == MARK_UPDATED) { - return ' ' . t('updated') . ''; - } - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/menu-local-tasks.theme.inc --- a/sites/all/themes/omega/theme/menu-local-tasks.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -' . t('Primary tabs') . ''; - $variables['primary']['#prefix'] .= ''; - $output .= drupal_render($variables['primary']); - } - if (!empty($variables['secondary'])) { - $variables['secondary']['#prefix'] = '

' . t('Secondary tabs') . '

'; - $variables['secondary']['#prefix'] .= ''; - $output .= drupal_render($variables['secondary']); - } - - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/more-help-link.theme.inc --- a/sites/all/themes/omega/theme/more-help-link.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - array('class' => array('more-link')))); -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/pager.theme.inc --- a/sites/all/themes/omega/theme/pager.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - $pager_max) { - // Adjust "center" if at end of query. - $i = $i + ($pager_max - $pager_last); - $pager_last = $pager_max; - } - if ($i <= 0) { - // Adjust "center" if at start of query. - $pager_last = $pager_last + (1 - $i); - $i = 1; - } - // End of generation loop preparation. - - $li_first = theme('pager_first', array('text' => (isset($tags[0]) ? $tags[0] : t('« first')), 'element' => $element, 'parameters' => $parameters)); - $li_previous = theme('pager_previous', array('text' => (isset($tags[1]) ? $tags[1] : t('‹ previous')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters)); - $li_next = theme('pager_next', array('text' => (isset($tags[3]) ? $tags[3] : t('next ›')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters)); - $li_last = theme('pager_last', array('text' => (isset($tags[4]) ? $tags[4] : t('last »')), 'element' => $element, 'parameters' => $parameters)); - - if ($pager_total[$element] > 1) { - if ($li_first) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--first'), - 'data' => $li_first, - ); - } - if ($li_previous) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--previous'), - 'data' => $li_previous, - ); - } - - // When there is more than one page, create the pager list. - if ($i != $pager_max) { - if ($i > 1) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--ellipsis'), - 'data' => '…', - ); - } - // Now generate the actual pager piece. - for (; $i <= $pager_last && $i <= $pager_max; $i++) { - if ($i < $pager_current) { - $items[] = array( - 'class' => array('pager__item'), - 'data' => theme('pager_previous', array('text' => $i, 'element' => $element, 'interval' => ($pager_current - $i), 'parameters' => $parameters)), - ); - } - if ($i == $pager_current) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--current'), - 'data' => $i, - ); - } - if ($i > $pager_current) { - $items[] = array( - 'class' => array('pager__item'), - 'data' => theme('pager_next', array('text' => $i, 'element' => $element, 'interval' => ($i - $pager_current), 'parameters' => $parameters)), - ); - } - } - if ($i < $pager_max) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--ellipsis'), - 'data' => '…', - ); - } - } - // End generation. - if ($li_next) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--next'), - 'data' => $li_next, - ); - } - if ($li_last) { - $items[] = array( - 'class' => array('pager__item', 'pager__item--last'), - 'data' => $li_last, - ); - } - return '

' . t('Pages') . '

' . theme('item_list', array( - 'items' => $items, - 'attributes' => array('class' => array('pager')), - )); - } -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/panels-default-style-render-region.theme.inc --- a/sites/all/themes/omega/theme/panels-default-style-render-region.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - array( - array('class' => array('choice-flag')), - drupal_render($form[$key]['chtext']), - ), - 'class' => array('draggable'), - ); - if ($is_admin) { - $row['data'][] = drupal_render($form[$key]['chvotes']); - } - $row['data'][] = drupal_render($form[$key]['weight']); - - // Add any additional classes set on the row. - if (!empty($form[$key]['#attributes']['class'])) { - $row['class'] = array_merge($row['class'], $form[$key]['#attributes']['class']); - } - - $rows[] = $row; - } - - $output = theme('table', array('header' => $headers, 'rows' => $rows, 'attributes' => array('id' => 'poll-choice-table', 'class' => array('poll-choice-table')))); - $output .= drupal_render_children($form); - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/status-messages.theme.inc --- a/sites/all/themes/omega/theme/status-messages.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ - t('Status message'), - 'error' => t('Error message'), - 'warning' => t('Warning message'), - ); - foreach (drupal_get_messages($display) as $type => $messages) { - $output .= '
'; - if (!empty($status_heading[$type])) { - $output .= '

' . $status_heading[$type] . "

"; - } - if (count($messages) > 1) { - $output .= '
    '; - foreach ($messages as $message) { - $output .= '
  • ' . $message . '
  • '; - } - $output .= '
'; - } - else { - $output .= $messages[0]; - } - $output .= '
'; - } - - return $output; -} diff -r a75ead649730 -r e063188e9b6b sites/all/themes/omega/theme/system-themes-page.theme.inc --- a/sites/all/themes/omega/theme/system-themes-page.theme.inc Fri Sep 20 11:18:21 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -'; - - foreach ($variables['theme_group_titles'] as $state => $title) { - if (!count($theme_groups[$state])) { - // Skip this group of themes if no theme is there. - continue; - } - // Start new theme group. - $output .= '

'. $title .'

'; - - foreach ($theme_groups[$state] as $theme) { - // Theme the screenshot. - if($theme->screenshot) { - $theme->screenshot['attributes']['class'] = str_replace('screenshot', 'theme-selector__screenshot', $theme->screenshot['attributes']['class']); - $screenshot = theme('image', $theme->screenshot); - } else { - $screenshot = '
' . t('No Screenshot') . '
'; - } - - // Localize the theme description. - $description = t($theme->info['description']); - - // Style theme info - $notes = count($theme->notes) ? ' (' . join(', ', $theme->notes) . ')' : ''; - $theme->classes[] = 'theme-selector'; - $theme->classes[] = 'theme-selector--' . $state; - if($theme->is_default) { - $theme->classes = str_replace('theme-default', 'theme-selector--default', $theme->classes); - } - $theme->classes[] = 'clearfix'; - $output .= '
' . $screenshot . '

' . $theme->info['name'] . ' ' . (isset($theme->info['version']) ? $theme->info['version'] : '') . $notes . '

' . $description . '
'; - - // Make sure to provide feedback on compatibility. - if (!empty($theme->incompatible_core)) { - $output .= '
' . t('This version is not compatible with Drupal !core_version and should be replaced.', array('!core_version' => DRUPAL_CORE_COMPATIBILITY)) . '
'; - } - elseif (!empty($theme->incompatible_php)) { - if (substr_count($theme->info['php'], '.') < 2) { - $theme->info['php'] .= '.*'; - } - $output .= '
' . t('This theme requires PHP version @php_required and is incompatible with PHP version !php_version.', array('@php_required' => $theme->info['php'], '!php_version' => phpversion())) . '
'; - } - else { - $output .= theme('links', array('links' => $theme->operations, 'attributes' => array('class' => array('theme-selector__operations', 'clearfix')))); - } - $output .= '
'; - } - $output .= '
'; - } - $output .= ''; - - return $output; -}