{"id":104926,"date":"2019-06-05T23:52:36","date_gmt":"2019-06-05T23:52:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/githubin\/"},"modified":"2022-12-07T22:08:15","modified_gmt":"2022-12-07T22:08:15","slug":"embed-githubin","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/embed-githubin\/","author":17220187,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.13","stable_tag":"trunk","tested":"6.1.10","requires":"2.7.0","requires_php":"5.2","requires_plugins":"","header_name":"embed-githubin","header_author":"laresistenciadelbit","header_description":"Shortcode for a box with a github project.","assets_banners_color":"92c1d3","last_updated":"2022-12-07 22:08:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/laresistenciadelbit.baal.host","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1273,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2101264,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2101264,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2101264,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2101264,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2101264,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"embed repositories list","2":"embed repository file list","3":"embed readme with or without images"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[230,1673,172455],"plugin_category":[56],"plugin_contributors":[172470],"plugin_business_model":[],"class_list":["post-104926","plugin","type-plugin","status-publish","hentry","plugin_tags-embed","plugin_tags-github","plugin_tags-github-embed","plugin_category-social-and-sharing","plugin_contributors-lrdb","plugin_committers-lrdb"],"banners":{"banner":"https:\/\/ps.w.org\/embed-githubin\/assets\/banner-772x250.png?rev=2101264","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/embed-githubin\/assets\/icon-256x256.png?rev=2101264","icon_2x":"https:\/\/ps.w.org\/embed-githubin\/assets\/icon-256x256.png?rev=2101264","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/embed-githubin\/assets\/screenshot-1.png?rev=2101264","caption":"embed repositories list"},{"src":"https:\/\/ps.w.org\/embed-githubin\/assets\/screenshot-2.png?rev=2101264","caption":"embed repository file list"},{"src":"https:\/\/ps.w.org\/embed-githubin\/assets\/screenshot-3.png?rev=2101264","caption":"embed readme with or without images"}],"raw_content":"<!--section=description-->\n<p>This plugin creates a shortcode for embedding github files, repositories, readmes or folders.<\/p>\n\n<p>The shortcode format is (most settings are optional):<\/p>\n\n<blockquote>\n  <p>[github_box url=\"PUT_GITHUB_URL_HERE\" border=\"radius\" style=\"box\" x=\"300\" y=\"300\" fgcolor=\"#333\" bgcolor=\"#fafafa\" disable_images=\"false\"]<\/p>\n<\/blockquote>\n\n<p>...............................\n...............................<\/p>\n\n<p>The variables:<\/p>\n\n<ul>\n<li>url=\"PUT_GITHUB_URL_HERE\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Here you can put either a github user url, a repository url, a readme url or a file url.\n  They are threated in different ways; user url will show its repositories;\n  repository url will show its main files, readme and files will show its contents.<\/p>\n<\/blockquote>\n\n<ul>\n<li>border=\"radius\" OR border=\"true\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>If we use one of this options will create a border with the content.<\/p>\n<\/blockquote>\n\n<ul>\n<li>style=\"box\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>It will create a scrollable box with the content<\/p>\n<\/blockquote>\n\n<ul>\n<li>x=\"300\" y=\"300\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Those options are the dimensions of the box<\/p>\n<\/blockquote>\n\n<ul>\n<li>fgcolor=\"#333\" bgcolor=\"#fafafa\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Set the text color and background color<\/p>\n<\/blockquote>\n\n<ul>\n<li>disable_images=\"true\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Remove all images from the content<\/p>\n<\/blockquote>\n\n<ul>\n<li>disable_fav=\"true\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Remove the fav parragraphs from an user repositories<\/p>\n<\/blockquote>\n\n<ul>\n<li>id=\"IDNAME\"<\/li>\n<\/ul>\n\n<blockquote>\n  <p>Creates a cached file of the content. This setting is very recomended to use.\n  But remember: if you change later the attributes of the shortcode it won't update\n  until the cachetime has passed or unless you delete the cached file (in plugin's directory).<\/p>\n<\/blockquote>\n\n<ul>\n<li>cachetime=\"10800\" <\/li>\n<\/ul>\n\n<blockquote>\n  <p>Number of seconds before it rebuilds the cache file (default is 10800seconds=3hours)<\/p>\n<\/blockquote>\n\n<!--section=installation-->\n<p>just install it from wordpress.org plugins list or upload the plugin to the plugins folder.\nput it as shortcode with the correct format:\n[github_box url=\"PUT_GITHUB_URL_HERE\" border=\"radius\" style=\"box\" x=\"300\" y=\"300\" fgcolor=\"#333\" bgcolor=\"#fafafa\" disable_images=\"false\"]<\/p>\n\n<!--section=changelog-->\n<p>2022-12-07\n*updated to work with last github content<\/p>\n\n<p>2021-05-10\n*fixed main repository file listing\n*removed unnecesary columns in file listing\n*fixed embedding in blocks<\/p>\n\n<p>2021-05-04\n*updated to work with last github content<\/p>\n\n<p>Old changelog:<\/p>\n\n<ul>\n<li>-remove coments<\/li>\n<li>-using internal http request API from wordpress instead CURL:\nhttps:\/\/developer.wordpress.org\/reference\/classes\/WP_Http\/request\/<\/li>\n<li>cleaning code<\/li>\n<li>-updated support to embed github files<\/li>\n<li>little change<\/li>\n<li>arreglos por cambio de c?digo en github<\/li>\n<li>avoid the rebuild cache time for localhost or some ip in $myserverip<\/li>\n<li>comment ps<\/li>\n<li>prevents loading cache file with size = 0<\/li>\n<li>-forgot to update a variable name<\/li>\n<li>readme: cache warning<\/li>\n<li>-added content caching:\n&amp;  attributes for save cache as githubin_ with  seconds to rebuild the cache.<\/li>\n<li>evitamos m?s cajas de [github_box] dentro<\/li>\n<li>-fix: comparing file name with a larger extension name is disabled\n-fix: plugin doesnt get content if no url has passed to it. (before, it got crazy with plugins like elementor which make a previous view of the post each few seconds)<\/li>\n<li>image resize<\/li>\n<li>readme changes<\/li>\n<li>image change<\/li>\n<\/ul>","raw_excerpt":"Embed github content in your wordpress site. Either in a post or a widget you can get a file list, repositories or a single file from github.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/104926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=104926"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lrdb"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=104926"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=104926"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=104926"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=104926"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=104926"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=104926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}