{"id":121543,"date":"2020-05-15T13:03:45","date_gmt":"2020-05-15T13:03:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/show-repos\/"},"modified":"2020-05-30T03:11:30","modified_gmt":"2020-05-30T03:11:30","slug":"show-repos","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/show-repos\/","author":17943567,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.3","stable_tag":"trunk","tested":"5.4.19","requires":"5.0","requires_php":"5.4","requires_plugins":"","header_name":"Show Repos","header_author":"Joytou Wu","header_description":"Show your repo(s) on the wordpress through a simple shortcode.","assets_banners_color":"","last_updated":"2020-05-30 03:11:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.xn--irr040d121a.cn\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":719,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<ul>\n<li>The .\/mod\/ directory needs to be backed up before updating, it will be overwritten through the system update mechanism.<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2305634","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2305634","resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2305634","resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"2305638","resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"2305634","resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"In PC.","2":"In mobile.","3":"Shortcode."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[15326,185834,1673,14091],"plugin_category":[],"plugin_contributors":[185439],"plugin_business_model":[],"class_list":["post-121543","plugin","type-plugin","status-closed","hentry","plugin_tags-git","plugin_tags-gitee","plugin_tags-github","plugin_tags-repository","plugin_contributors-joytou","plugin_committers-joytou"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/show-repos.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/show-repos\/assets\/screenshot-1.png?rev=2305634","caption":"In PC."},{"src":"https:\/\/ps.w.org\/show-repos\/assets\/screenshot-2.jpg?rev=2305638","caption":"In mobile."},{"src":"https:\/\/ps.w.org\/show-repos\/assets\/screenshot-3.png?rev=2305634","caption":"Shortcode."}],"raw_content":"<!--section=description-->\n<p>Show your repo(s) on the wordpress through a simple shortcode.<\/p>\n\n<h4>How to Use<\/h4>\n\n<p>Add the shortcode to anywhere you want to display: \n    <code>[show-repo src=\"{{code-managed plant}}\" user=\"{{username that the repo want to display}}\" repo=\"{{repository name that the repo want to display}}\"\/]<\/code><\/p>\n\n<h4>Example Code<\/h4>\n\n<ol>\n<li>\n<code>[show-repo src=\"github\" user=\"joytou\" repo=\"WP-Bing-Background\"\/]<\/code><\/li>\n<li>\n<code>[show-repo src=\"gitee\" user=\"joytouwu\" repo=\"WP-Bing-Background\"\/]<\/code><\/li>\n<\/ol>\n\n<h4>Upgrade Notice<\/h4>\n\n<p>The '.\/mod\/' directory needs to be backed up before updating, it will be overwritten through the system update mechanism.<\/p>\n\n<h4>Steps to Upgrade<\/h4>\n\n<ol>\n<li>Back up the plugin directory, deactive the plugin, and then delete the plugin directory before upgrade to new version.<\/li>\n<li>Upload and unzip the new version to its original location, active plugins, plugin configuration sits to automatically inherit.<\/li>\n<\/ol>\n\n<h4>Contribute<\/h4>\n\n<p>Welcome to help to improve the plugin if you have any idea or you had caught any bug. Please email me <a href=\"mailto:&#x6a;&#111;&#121;&#x74;&#x6f;&#117;&#046;&#x77;&#x75;&#064;&#113;&#x71;&#x2e;c&#111;&#109;\">&#x6a;&#111;&#121;&#x74;&#x6f;&#117;&#046;&#x77;&#x75;&#064;&#113;&#x71;&#x2e;c&#111;&#109;<\/a>. Thanks~<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Backup and delete the plugin directory and deactive the plugin if you has installed any elder version.<\/li>\n<li>Upload the plugin files to the plugins directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>How to extend the other code-managed plant (or the likely service)?<\/h3><\/dt>\n<dd><ol>\n<li>Create a php file in '.\/mod\/' directory, and name it to the plant name (format: {{plant name}}.php).<\/li>\n<li>Write the php file content as the following template:\n<code>php\n&lt;?php\nclass SHOW_REPOS_MOD_{{PLANT_NAME}} {\npublic $api_url         = '{{url}}'; \/\/Plant api url that point to repo, usual it is such: https:\/\/{{url}}\/{:user}\/{:repo}\npublic $template_css    = '{{css_file_url}}'; \/\/Recommend to write it follow the format: css\/{{plant name}}.css\npublic $template_js     = '{{js_file_url}}'; \/\/Recommend to write it follow the format: js\/{{plant name}}.js\npublic $template_html   = '{{html_file_url}}'; \/\/Recommend to write it follow the format: {{plant name}}.html\npublic function data_format($original_data){\n    $data = array();\n    $data['name']           = $original_data['{{name}}'];  \/\/The api struct data key which get the repo's name.\n    $data['description']    = $original_data['description'];  \/\/The api struct data key which get the repo's description.\n    $data['url']            = $original_data['html_url'];  \/\/The api struct data key which get the repo's url, which link to the repo.\n    $data['download_url']   = 'http:\/\/github.com\/'.$original_data['full_name'].'\/zipball\/master';  \/\/The api struct data key which get the repo's download url, or the url that can download the repo.\n    $data['owner']          = $original_data['owner']['login'];  \/\/The api struct data key which get the repo owner's name.\n    $data['owner_url']      = $original_data['owner']['html_url'];  \/\/The api struct data key which get the owner's url, which can link to the owner.\n    $data['subscribers']    = $original_data['subscribers_count'];  \/\/The api struct data key which get the count of subscriber(s)\/starer(s) about the repo.\n    $data['watchers']       = $original_data['watchers'];  \/\/The api struct data key which get the count of watcher(s) about the repo.\n    $data['forks']          = $original_data['forks'];  \/\/The api struct data key which get the count of has forked about the repo.\n    $data['home_page']      = $original_data['homepage'];  \/\/The api struct data key which get theurl of the repo's homepage.\n    $data['branch']         = $original_data['default_branch'];  \/\/The api struct data key which get the default branch name of the repo.\n    $data['ctime']          = $original_data['created_at'];  \/\/The api struct data key which get the repo's created time.\n    $data['mtime']          = $original_data['updated_at'];  \/\/The api struct data key which get the repo's last updated time.\n    $data['ptime']          = $original_data['pushed_at'];  \/\/The api struct data key which get the repo's last pushed time.\n    return $data;\n}\n}<\/code><\/li>\n<li>Add and write the html template file in the directory '.\/mod\/template\/', which want to display in the shortcode, and add such label where want to display the specified infomation:\n<code>{{name}} =&gt; Repo's name\n{{description}} =&gt; Repo's description\n{{url}} =&gt; Repo's url\n{{download_url}} =&gt; The url that can download the repo\n{{owner}} =&gt; Repo owner's name\n{{owner_url}} =&gt; Repo owner's url\n{{subscribers}} =&gt; The num of subscribing\/staring the repo\n{{watchers}} =&gt; The num of watching the repo\n{{forks}} =&gt; The num of forking the repo\n{{home_page}} =&gt; Repo's homepage url, which can link to repo's homepage\n{{branch}} =&gt; Repo's default branch name\n{{ctime}} =&gt; Repo's created time\n{{mtime}} =&gt; Repo's last updated time\n{{ptime}} =&gt; Repo's last pushed time<\/code><\/li>\n<li>Add the css\/js file to the directory '.\/mod\/template\/css\/' \/ '.\/mod\/template\/js\/' as if needed, and name it(s) to the plant name (format: {{plant name}}.js \/ {{plant name}}.css)<\/li>\n<\/ol><\/dd>\n<dt><h3>I had added the shortcode, but it still does not display or it display the error message.<\/h3><\/dt>\n<dd><ol>\n<li>Please ensure there are files in directory '.\/mod\/'.<\/li>\n<li>Please check if you write the correct infomation, like src(point to the plant name), user(the repo's owner), repo(the repo).<\/li>\n<li>If you had modified any file(s), you can modify it(s) to the correct, refer to FAQ 'How to extend the other code-managed plant (or the likely service)?'.<\/li>\n<li>If it sitll, redownload and active the plugin.<\/li>\n<li>If you have any doubt(s), please email me <a href=\"mailto:&#x6a;&#111;&#121;&#x74;&#x6f;&#117;&#046;&#x77;&#x75;&#064;&#113;&#x71;&#x2e;c&#111;&#109;\">&#x6a;&#111;&#121;&#x74;&#x6f;&#117;&#046;&#x77;&#x75;&#064;&#113;&#x71;&#x2e;c&#111;&#109;<\/a>.<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Fixed a bug due to the error coding.<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Add translation supportted, for locale.<\/li>\n<li>Add api data cache function, and can clear the cache(in the setting screen: General Settings -&gt; Show Repos). Of course, it is optional.<\/li>\n<\/ul>","raw_excerpt":"Show your repo(s) on the wordpress through a simple shortcode. Modular structure, on-demand expansion, open source code. Show the code-managed reposit &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121543"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joytou"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121543"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121543"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121543"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121543"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121543"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}