{"id":24085892,"url":"https://github.com/bloke/smd_at_work","last_synced_at":"2025-07-01T05:03:16.955Z","repository":{"id":22184407,"uuid":"25516420","full_name":"Bloke/smd_at_work","owner":"Bloke","description":"A Textpattern CMS plugin for informing visitors of site maintenance","archived":false,"fork":false,"pushed_at":"2021-05-10T01:33:02.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T05:01:54.152Z","etag":null,"topics":["textpattern","textpattern-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bloke.png","metadata":{"files":{"readme":"README.textile","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-21T10:32:54.000Z","updated_at":"2022-11-15T01:37:31.000Z","dependencies_parsed_at":"2022-08-20T22:40:53.749Z","dependency_job_id":null,"html_url":"https://github.com/Bloke/smd_at_work","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Bloke/smd_at_work","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloke%2Fsmd_at_work","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloke%2Fsmd_at_work/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloke%2Fsmd_at_work/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloke%2Fsmd_at_work/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bloke","download_url":"https://codeload.github.com/Bloke/smd_at_work/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bloke%2Fsmd_at_work/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262900061,"owners_count":23381656,"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":["textpattern","textpattern-plugin"],"created_at":"2025-01-10T01:55:01.896Z","updated_at":"2025-07-01T05:03:16.907Z","avatar_url":"https://github.com/Bloke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. smd_at_work\n\nTell visitors your Textpattern website is undergoing maintenance with the flick of a switch.\n\n# Install and enable the plugin [Requires Textpattern 4.7.0+].\n# Visit the __Admin \u003e Prefs__ panel.\n# Set __Maintenance mode enabled__ on or off as desired and set the optional message to display.\n\nWith the switch on, anyone not logged into the admin side will see a 503 error status and your given message. If you set up an @error_503@ Page template, that will be delivered instead.\n\nWhen maintenance mode is on, a message is displayed in the footer of all admin-side panels to remind you of the fact. Admins also have a link to the preferences panel so they can easily turn it off.\n\nh2. Public tags\n\nThere are three public tags available. The tags are of limited use in live templates, but can be very helpful on admin-side dashboards to allow shortcuts for setting the maintenance state of the site.\n\nh3. @\u003ctxp:smd_if_at_work\u003e@\n\nConditional tag, with no attributes, that executes the contained content if the site is in maintenance mode. Supports @\u003ctxp:else /\u003e@.\n\nh3. @\u003ctxp:smd_at_work_status\u003e@\n\nSet the site maintenance state. Attribute:\n\nh4. @status@\n\nValues:\n\n* omitted: toggle status\n* 0: set maintenance mode off\n* 1: set maintenance mode on\n\nNote that the plugin only checks to see if the tag is used by any logged-in user. If you wish to exact finer-grained control, you must do so in your Page template.\n\nh3. @\u003ctxp:smd_at_work_message\u003e@\n\nDisplay a site maintenance message. Attribute:\n\nh4. @text@\n\nThe text to display. If omitted, the system-wide message (as set in prefs) is used.\n\nh2. Example 1: toggle the site state on click of a link\n\nbc.. \u003ctxp:adi_gps name=\"maintenance\" quiet=\"1\" /\u003e\n\n\u003ctxp:if_variable name=\"maintenance\" value=\"\"\u003e\n\u003ctxp:else /\u003e\n   \u003ctxp:smd_at_work_status /\u003e\n\u003c/txp:if_variable\u003e\n\n\u003ctxp:smd_if_at_work\u003e\n   Maintenance Mode is on. \u003ca href=\"?event=dashboard\u0026maintenance=1\"\u003eMake site live\u003c/a\u003e.\n\u003ctxp:else /\u003e\n   Website is live. \u003ca href=\"?event=dashboard\u0026maintenance=1\"\u003ePut it in Maintenance Mode\u003c/a\u003e.\n\u003c/txp:smd_if_at_work\u003e\n\nh2. Author/credits\n\nCobbled together by \"Stef Dawson\":https://stefdawson.com/sw, this plugin is a complete rip of the excellent rvm_maintenance plugin, but with the ability to control things via a preference instead of using the plugin's enabled/disabled state. This makes it easier to manage your site's status in a disk-based plugin cache environment where plugins are \"always on\". Thanks to Ruud van Melick for the original plugin.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloke%2Fsmd_at_work","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloke%2Fsmd_at_work","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloke%2Fsmd_at_work/lists"}