{"id":21819415,"url":"https://github.com/dflydev/embed-github-gist","last_synced_at":"2025-04-14T02:29:19.079Z","repository":{"id":1205573,"uuid":"1115740","full_name":"dflydev/embed-github-gist","owner":"dflydev","description":"Embed GitHub Gist WordPress plugin","archived":false,"fork":false,"pushed_at":"2013-11-20T15:01:28.000Z","size":329,"stargazers_count":47,"open_issues_count":6,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-05-09T14:08:39.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dflydev.com/d2code/wordpress/embed-github-gist-plugin/","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/dflydev.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":"2010-11-26T22:36:38.000Z","updated_at":"2022-11-28T16:08:06.000Z","dependencies_parsed_at":"2022-08-16T12:35:16.791Z","dependency_job_id":null,"html_url":"https://github.com/dflydev/embed-github-gist","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fembed-github-gist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fembed-github-gist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fembed-github-gist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflydev%2Fembed-github-gist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dflydev","download_url":"https://codeload.github.com/dflydev/embed-github-gist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226779851,"owners_count":17680772,"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-27T16:19:01.907Z","updated_at":"2024-11-27T16:19:02.647Z","avatar_url":"https://github.com/dflydev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embed GitHub Gist\n\nEmbed GitHub Gists into WordPress.\n\nYou can find [Embed GitHub Gist](http://wordpress.org/extend/plugins/embed-github-gist/)\nat the [WordPress Plugin Directory](http://wordpress.org/extend/plugins/).\n\n\n## Description\n\nEmbed [GitHub](http://github.com/) [Gists](http://gist.github.com) into\nWordPress. Provides a shortcode for posts and pages but also has the ability\nto embed by hand in the event that a Gist needs to be embedded somewhere in\nthe page that does not pass through the shortcode filters.\n\nExamples:\n\n * `[gist id=546764]`\n * `[gist id=546764 file=file.txt]`\n * `[gist id=546764 file=file.txt bump=1]`\n * `[gist]http://gist.github.com/546764[/gist]`\n\n\nCache is implemented with the Transients API to minimize delay on loading\ncontent. Default TTL (time to live) is 86400 seconds or one day.\n\nIf `json_decode` is available, the HTML markup for the source code will be\ninjected into the post inline. This will ensure that the code is available to\nspiders and feed readers.\n\nIf `json_decode` is not available, the standard GitHub Gist embed script\n(JavaScript) is included and the raw content will be added into a `NOSCRIPT`\nsection wrapped as follows:\n\n    \u003cnoscript\u003e\n    \u003cdiv class=\"embed-github-gist-source\"\u003e\n    \u003ccode\u003e\n    \u003cpre\u003eraw code here\u003c/pre\u003e\n    \u003c/code \u003e\n    \u003c/div\u003e\n    \u003c/noscript\u003e\n\n\n## Installation\n\n1. Download the plugin zip file\n1. Unzip contents of plugin zip file\n1. Upload the embed-github-gist directory to the `/wp-content/plugins/` directory\n1. Activate the plugin through the 'Plugins' menu in WordPress\n1. Start using the plugin by adding Gists to posts!\n\n\n## Frequently Asked Questions\n\n### How can I fix rate limit exceded errors?\n\nDefine EMBED_GISTHUB_USERNAME and EMBED_GISTHUB_PASSWORD in wp-settings.php.\n\n### Can the cache be broken?\n\nYes. Use a unique bump value to force cache to update. For instance, if you have\nthe following:\n\n`[gist id=546764]`\n\nThe cache can be broken by specifying a bump value:\n\n`[gist id=546764 bump=1]`\n\nTo break the cache again later, change to a new unique bump value:\n\n`[gist id=546764 bump=2]`\n\n### Can I change the TTL on a Gist-by-Gist basis?\n\nYes. Specify a TTL (in seconds) like this:\n\n`[gist id=546764 ttl=3600]`\n\n### Can I embed a Gist outside of a post or a page?\n\nYes.\n\n`\u003c?php echo embed_github_gist(546764); ?\u003e`\n\n### Can I display a specific file from my gist?\n\nUes. You can use the `file` parameter:\n\n`[gist id=546764 file=file.txt]`\n\n\n## Community\n\nIf you have questions or want to help out, join us in the\n[#dflydev](irc://irc.freenode.net/#dflydev) channel on irc.freenode.net.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflydev%2Fembed-github-gist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdflydev%2Fembed-github-gist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflydev%2Fembed-github-gist/lists"}