{"id":15481244,"url":"https://github.com/pyronaur/css-style-switcher","last_synced_at":"2025-04-22T15:24:32.366Z","repository":{"id":144768655,"uuid":"2290025","full_name":"pyronaur/CSS-Style-Switcher","owner":"pyronaur","description":"Switch CSS Styles with PHP","archived":false,"fork":false,"pushed_at":"2013-12-28T14:05:40.000Z","size":114,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T16:22:59.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.themer.me/css-switch-script","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/pyronaur.png","metadata":{"files":{"readme":"README.md","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-08-29T17:44:30.000Z","updated_at":"2024-05-28T16:00:18.000Z","dependencies_parsed_at":"2023-03-22T13:00:03.422Z","dependency_job_id":null,"html_url":"https://github.com/pyronaur/CSS-Style-Switcher","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/pyronaur%2FCSS-Style-Switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyronaur%2FCSS-Style-Switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyronaur%2FCSS-Style-Switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyronaur%2FCSS-Style-Switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyronaur","download_url":"https://codeload.github.com/pyronaur/CSS-Style-Switcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265605,"owners_count":21402141,"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-10-02T05:02:52.733Z","updated_at":"2025-04-22T15:24:32.337Z","avatar_url":"https://github.com/pyronaur.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"*I'll start off saying, that you can read more about the script here: http://justnorris.com/css-switch-script/*\n\n##Overwiew: =\nA Simple PHP Script to switch CSS Styles. Support for multiple CSS files at once. Has support for default CSS files, additional ones, etc. A pretty neat script and a lot more reliable solution then JavaScript. \n\n\n## Functionality\n\n  * No PHP Knowledge required at all, No installing, just drop the file in your CSS Folder, and make sure the server supports PHP.\n  * Ideal to showcase your work in multiple stylesheets but one HTML File.\n  * Faster than JavaScript method and works with browsers who don’t have JS enabled\n  * Automatically defines one or more default CSS file in the following order:\n  * Look for `default_1.css` and `default_2.css` to set as default\n  * If not found scan the directory for CSS files and use the first one found (ordered alphabetically)\n  * Use Links to change styles. So `\u003ca href=”css/switcher.php?style=another_1.css+another_2.css+another_3.css”\u003eAnother Style\u003c/a\u003e` is going to switch the style, set a cookie for 1 hour and then redirect back to last page. If last page visited can’t be found (HTTP_REFERER) PHP script will redirect back to index of the site.\n\n## Setup\n\n  * Download the script\n  * Insert switcher.php to your CSS Folder (In best scenario, you have a seperate folder with CSS files, if not, it’s okay, the script filters CSS files when listing them)\n  * In the site `\u003chead\u003e` insert something like this:\n    - `\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"css/switch.php\"\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyronaur%2Fcss-style-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyronaur%2Fcss-style-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyronaur%2Fcss-style-switcher/lists"}