{"id":18262860,"url":"https://github.com/roblib/cairntheme","last_synced_at":"2025-04-09T01:24:42.157Z","repository":{"id":1486122,"uuid":"1733401","full_name":"roblib/cairntheme","owner":"roblib","description":null,"archived":false,"fork":false,"pushed_at":"2012-01-26T17:20:54.000Z","size":784,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-14T19:36:22.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roblib.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-11T14:03:31.000Z","updated_at":"2014-01-30T02:26:24.000Z","dependencies_parsed_at":"2022-08-16T13:25:06.056Z","dependency_job_id":null,"html_url":"https://github.com/roblib/cairntheme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblib%2Fcairntheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblib%2Fcairntheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblib%2Fcairntheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblib%2Fcairntheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblib","download_url":"https://codeload.github.com/roblib/cairntheme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247954451,"owners_count":21024225,"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":"2024-11-05T11:09:05.431Z","updated_at":"2025-04-09T01:24:42.142Z","avatar_url":"https://github.com/roblib.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":" Summary\n\nThe cairntheme theme is a D6 Zen sub-theme that relies on the core components of Zen 2.x - http://drupal.org/project/zen\n\n * *Zen 2.x* is required to be in the themes directory along with your cairntheme sub theme\n\nThe cairntheme directory  in your theme folder is a sub-theme of Zen. This folder is actually the main template for all of the current cairntheme websites. The main template is basically all of the core style similarities of all of the sites, such as fixed width, margins, padding, sizes, etc. \n\n * stylesheet breakdowns for the core template are here:  - http://drupal.org/node/1069786\n\nEach of the websites then has it's own sub-sub-theme of the cairntheme, stored in the cairntheme folder by site name. The sub-sub-themes contain basic overrides such as color changes, header changes, etc. These sub-sub-themes are the only themes that should be modified for per site styling, if you modify the core template, all sites will be affected. \n \n * Theme bugs, or overall feature additions should be addressed in the core theme. \n\nh3. Basic theme directory structure: \n\n * sites/all/themes/\n ** zen (this is zen 2.x - required, should never be modified)\n ** cairntheme (sub-theme core template)\n *** cairnroblib (sub-sub-theme)\n\nMost of the changes you would need to make can be handled via css, the css files you would use for specific site overrides are simply in the css folder of the respective site name. \n\nexample:  \n\n * cairnroblib/css/cairnroblib.css\n\nMore involved changes would be handled in the core template's templates/page.tpl.php (region locations \u0026 page structure) and preprocessor functions and hooks, etc would go in template.php\n\n\nh2. Detailed Notes\n\nHere are the breakdown of the theme files in detail: \n\n * *cairntheme/* - core template folder, considered a sub-theme to drupal, same folder that houses all of the sub-sub-themes\n * *cairntheme.info* - This defines regions, defines the core theme (zen), specifies js files and sets theme settings\n * *template.php* - preprocessor functions and hooks would go here, if a sub-sub-theme does not have a template.php, it falls back to this one\n * *theme-settings.php* - not used, as this is part of the core template but must be present\n * *logo.png* - default logo - not used, as this is part of the core template but must be present\n * *favicon.ico* - default favicon - not used, as this is part of the core template but must be present\n * *screenshot.png* - screenshot on themes page for template (not important, but must be present)\n * *README* - readme file for the theme\n * *js/* - this folder houses any javascript the theme may be calling\n * *images/* - this houses core template images, if a sub-sub-theme does not call an image, the theme falls back to these in the core template\n * *images-source* - this houses the source psd's that are used to create the header, search bar \u0026 nav bar\n * *css/* - all of the core css files are here\n * *templates/* - content-type, view, block, page, node, etc template override location, if a sub-sub-theme does not have template files in it's own templates dir, it falls back to this folder\n * *starterkit/* - this is the kit used to create new sub-sub-themes\n * *cairnroblib/* - sub-sub-theme\n\nh3. breakdown of files in a sub-sub-theme\n\n * *themename/* - this is the theme name, it should correspond with the name of your sub-sub-theme's .info file\n * *logo.png* - this is the logo for the sub-sub-theme\n * *screenshot.jpg* - this is the screenshot that appears when picking your theme in theme-settings\n * *template.php* - custom functions can be added here that will work only for the sub-sub-theme, the sub-sub-theme will read this file first, then fall back to the core theme's template.php\n * *theme-settings* - you can further add features for your theme-settings page here\n * *css/* - contains 1 css file themename.css, this is for overrides of the core template to customize your sub-sub-theme\n * *images/* - put images here that you reference from your themename.css\n * *js/* - if you wish to add javascript to a specific sub-sub-theme, drop it here and initialize it in your themename.info\n * *templates/* - template overrides get added here, if you are overriding a core drupal feature, then first copy the .tpl.php from the zen templates folder (example node.tpl.php) then add it to your sub-theme (core) or sub-sub-theme templates folder.. You can then directly modify it, or copy it and make a new one to further isolate the thing you want to modify (example node-content_type_name.tpl.php)\n\nh2. How to create a new sub-sub-theme\n\n * copy the starterkit/ folder to a new theme name\n * do a search and replace in theme-settings.php, template.php and starterkit.info.text for STARTERKIT and replace with your themename\n * rename starterkit.info.text to themename.info\n * rename css/starterkit.css to themename.css\n * do a search and replace on themename.css for the 3 main colors #f7e59d (gold replacement), #292c33 (green replacement), #517801 (brown replacement) with your own replacement colors \n * you will need to go into the sub-sub-theme and change link colors where necessary, even if using the script below\n\nIf you wanted to do this with a shell script, you would use: \n\n\u003cpre\u003e\n!/bin/bash\n\ndir=/var/aegir/platforms/drupal-6.20/sites/all/themes/cairntheme\nuser=username\ngroup=webdevelopers\n\n# Get name of new multisite\necho -n \"Enter name of new subtheme: \"\nread sub\n\n# Get the replacement colour codes for the new theme\n\necho -n \"Enter the primary colour in HEX (red text and links on UPEI): \"\nread red\n\necho -n \"Enter the secondary colour in HEX (gold navbar on UPEI): \"\nread gold\n\necho -n \"Enter the secondary gradient colour in HEX (choose a lighter color - http://www.colorzilla.com/gradient-editor/ ): \"\nread goldgradient\n\necho -n \"Enter the third replacement colour (green highlights on UPEI): \"\nread green\n\n# Stripout any dashes in new name\nsub2=`echo $sub | sed 's/\\-//'`\n\n# Create new theme dir and copy Zen starterkit into it\ncp -R $dir/starterkit  $dir/$sub2\n\n# Rename starterkit files and find/replace starterkit with new subtheme name in all the files\nmv $dir/$sub2/starterkit.info.txt $dir/$sub2/$sub2.info\nmv $dir/$sub2/css/starterkit.css $dir/$sub2/css/$sub2.css\ncd $dir/$sub2/\nchown -R $user:$group $dir/$sub2\n\nsed -i \"s/starterkit/$sub2/g\" $dir/$sub2/template.php\nsed -i \"s/starterkit/$sub2/g\" $dir/$sub2/theme-settings.php\nsed -i \"s/starterkit/$sub2/g\" $dir/$sub2/$sub2.info\n\n# Replace the colour codes in css/\u003ctheme\u003e.css\nsed -i \"s/8B1F04/$red/g\" $dir/$sub2/css/$sub2.css\nsed -i \"s/F5AE30/$gold/g\" $dir/$sub2/css/$sub2.css\nsed -i \"s/F4DAAD/$goldgradient/g\" $dir/$sub2/css/$sub2.css\nsed -i \"s/6B6F2A/$green/g\" $dir/$sub2/css/$sub2.css\n\u003c/pre\u003e\n\nh2. \nCustom mods made to specific cairntheme sites\n\n ** *cairnroblib/* - no custom changes\n\nh2. Reference docs\n\nZen Documentation\nhttp://drupal.org/node/193318\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblib%2Fcairntheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblib%2Fcairntheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblib%2Fcairntheme/lists"}