{"id":28956993,"url":"https://github.com/developmentseed/rubik","last_synced_at":"2025-09-10T18:32:51.503Z","repository":{"id":730114,"uuid":"379100","full_name":"developmentseed/rubik","owner":"developmentseed","description":"DEPRECATED. Please see new home on d.o","archived":false,"fork":false,"pushed_at":"2010-09-28T19:23:49.000Z","size":540,"stargazers_count":79,"open_issues_count":35,"forks_count":7,"subscribers_count":66,"default_branch":"master","last_synced_at":"2024-04-10T03:11:39.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://drupal.org/project/rubik","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developmentseed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-11-20T03:00:59.000Z","updated_at":"2022-07-28T05:39:13.000Z","dependencies_parsed_at":"2022-07-18T12:31:43.007Z","dependency_job_id":null,"html_url":"https://github.com/developmentseed/rubik","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/developmentseed/rubik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frubik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frubik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frubik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frubik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developmentseed","download_url":"https://codeload.github.com/developmentseed/rubik/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developmentseed%2Frubik/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261561296,"owners_count":23177570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-23T21:41:19.373Z","updated_at":"2025-06-23T21:41:20.763Z","avatar_url":"https://github.com/developmentseed.png","language":"PHP","readme":"Rubik\n-----\nRubik is a clean admin theme designed for use with the admin module. It features\na set of icons for admin pages provided by Drupal core and aggressive styling to\nreduce visual noise wherever possible.\n\n\nRequirements\n------------\nYou must install the [Tao][1] base theme for Rubik to operate properly.\n\n\nOverview for subthemers\n-----------------------\nRubik can be used quite successfully as a base for non-admin themes. Here are\nsome reasons you might want to use Rubik as a base theme:\n\n- You want to inherit its styling for form and other major page elements.\n- You want to inherit its admin-element styling, e.g. you want to use the same\ntheme for both the frontend and backend.\n- You want to inherit form layouts and preprocess routing that Rubik provides.\n\nBefore beginning to subtheme based on Rubik, please read the README included\nwith Tao. As Rubik is a subtheme of Tao, many of the principle and ideas in Tao\napply to subtheming Rubik as well.\n\n\n### Form theming\n\nTo work with form theming in Rubik (and Drupal in general) you should become\nfamiliar with [`drupal_render()`][2]. Form rendering in Rubik is done in the\n**template file**, not the preprocess, allowing any additional preprocessors to\nalter the form in its structured state.\n\nRubik pushes many system forms through a series of additional preprocess\nfunctions before templating.\n\n- `rubik_preprocess_form_buttons()` detects any root level submit and button\ntype elements and groups them together under `$form['buttons']` so they can be\nplaced in a wrapping element.\n- `rubik_preprocess_form_legacy()` handles legacy theme function-based forms\nthat use a declared theme function. It will first render the form using the\nfunction specified by `#theme` and then generate a form array that can be used\nwith `drupal_render()` in templates.\n\n\n### Icon classes\n\nThe admin icons in Rubik are displayed using a CSS sprite and corresponding CSS\nclass. The class that refers to each icon is based on a link path to the admin\npage. For a path at `admin/settings/foo`, the classes added to the containing\nelement of `span.icon` are:\n\n  - `path-admin-settings-foo`\n  - `path-admin-settings`\n  - `path-admin`\n\nThis allows for your element to fallback to a more generic, placeholder icon if\nthe most specific class cannot be used.\n\n\n### Object \u0026 form template layouts\n\nRubik groups elements in the tao object template and various forms into two\ncolumns.\n\n- For object templates (`theme('node')`, `theme('comment')`, etc.) you can\nswitch to a typical 1-column layout in you  preprocess function:\n\n        $vars['layout'] = FALSE;\n\n- For form templates, you should use `hook_theme()` to and declare the form's\ntemplate as `form-simple`. If a prior preprocess has moved form elements in\n`$vars['sidebar']` for the form, you will need to move them back to the\n`$vars['form']` element.\n\n        // Switch comment form back to simple layout.\n        function mysubtheme_theme() {\n          $items['comment_form'] = array(\n            'arguments' =\u003e array('form' =\u003e array()),\n            'path' =\u003e drupal_get_path('theme', 'rubik') .'/templates',\n            'template' =\u003e 'form-simple',\n          );\n          return $items;\n        }\n\n\n### Stylesheets\n\n- `core.css` provides styles for standard Drupal core markup elements, in\nparticular form elements, list items, pagers, etc. It does not style any \"page\nwrapper\" or \"design elements\" like the site logo, navigation, etc.\n- `icons.css` provides styles for the admin icons provided by Rubik.\n- `style.css` provides styles for the Rubik admin theme page wrapper and other\naesthetic elements. This includes the site title, tabs, navigation, breadcrumb,\netc. **This is the file you will most likely want to override to begin your\nsubtheme.**\n\n\nIssue tracking\n--------------\nThe code for Rubik is hosted on GitHub. Please report issues and submit\npatches/fork requests at http://github.com/developmentseed/rubik. You can\ndownload packages of the latest release of Rubik at\nhttp://code.developmentseed.org/tao.\n\n\nMaintainer\n----------\n- yhahn (Young Hahn)\n\n\n[1]: http://code.developmentseed.org/tao\n[2]: http://api.drupal.org/api/function/drupal_render/6\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Frubik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopmentseed%2Frubik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopmentseed%2Frubik/lists"}