{"action":"created","comment":{"url":"https://api.github.com/repos/vanilla/docs/pulls/comments/167075650","pull_request_review_id":95240215,"id":167075650,"diff_hunk":"@@ -0,0 +1,97 @@\n+---\n+title: Hero Image\n+tags:\n+- Addons\n+- Hero Image\n+- Image upload\n+category: help\n+menu:\n+  help:\n+    parent: addons\n+    identifier: addon-hero-image\n+versioning:\n+  added: 2.6\n+---\n+\n+## Overview\n+\n+{{% cloudfeature %}}\n+\n+This plugin allows you to:\n+\n+- Associate an background image with a category.\n+- Inherit the parent categories image if one isn't set.\n+- Set a \"top-level\" image that everything falls back to if no image is found on a parent category.\n+- Access this image through a [Smarty Template]() or [Customize Theme]().\n+\n+## Setup\n+\n+- Visit the addon's page of the dashboard.\n+- Enable the HeroImage plugin.\n+\n+![](/img/help/addons/hero-image/hero-image-settings.png)\n+\n+## Set the default image\n+\n+1. Click on the settings icon next to the plugin.\n+2. Click on the file picker to select your image.\n+![](/img/help/addons/hero-image/hero-image-set-default.png)\n+3. Click save.\n+\n+## Set a category image.\n+\n+1. Navigate to the category page of the dashboard. (`/vanilla/settings/categories`)\n+2. Edit a category.\n+3. Scroll to the Hero Image section.\n+4. Use the file picker to upload a file.\n+![](/img/help/addons/hero-image/hero-image-set-category.png)\n+5. Click Save.\n+\n+## Usage in PHP and Smarty\n+\n+The URL of the image for the current page will be made available to Smarty Templates and customize theme with the tag:\n+\n+```tpl\n+{hero_image_url}\n+```\n+\n+If you place this custom smarty tag in your CustomizeTheme, and disable the Hero Image plugin you site _will_ break until you either remove the tag or re-enable the plugin.","path":"content/help/addons/hero-image.md","position":58,"original_position":58,"commit_id":"90b533fdbdcfbddeed1cd5fca8eb80f11cf62429","original_commit_id":"90b533fdbdcfbddeed1cd5fca8eb80f11cf62429","user":{"login":"slafleche","id":19651440,"avatar_url":"https://avatars1.githubusercontent.com/u/19651440?v=4","gravatar_id":"","url":"https://api.github.com/users/slafleche","html_url":"https://github.com/slafleche","followers_url":"https://api.github.com/users/slafleche/followers","following_url":"https://api.github.com/users/slafleche/following{/other_user}","gists_url":"https://api.github.com/users/slafleche/gists{/gist_id}","starred_url":"https://api.github.com/users/slafleche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slafleche/subscriptions","organizations_url":"https://api.github.com/users/slafleche/orgs","repos_url":"https://api.github.com/users/slafleche/repos","events_url":"https://api.github.com/users/slafleche/events{/privacy}","received_events_url":"https://api.github.com/users/slafleche/received_events","type":"User","site_admin":false},"body":"Add link to customize theme","created_at":"2018-02-08T21:38:36Z","updated_at":"2018-02-08T21:43:35Z","html_url":"https://github.com/vanilla/docs/pull/223#discussion_r167075650","pull_request_url":"https://api.github.com/repos/vanilla/docs/pulls/223","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vanilla/docs/pulls/comments/167075650"},"html":{"href":"https://github.com/vanilla/docs/pull/223#discussion_r167075650"},"pull_request":{"href":"https://api.github.com/repos/vanilla/docs/pulls/223"}}},"pull_request":{"url":"https://api.github.com/repos/vanilla/docs/pulls/223","id":168066260,"html_url":"https://github.com/vanilla/docs/pull/223","diff_url":"https://github.com/vanilla/docs/pull/223.diff","patch_url":"https://github.com/vanilla/docs/pull/223.patch","issue_url":"https://api.github.com/repos/vanilla/docs/issues/223","number":223,"state":"open","locked":false,"title":"Add hero image doc","user":{"login":"Charrondev","id":1770056,"avatar_url":"https://avatars0.githubusercontent.com/u/1770056?v=4","gravatar_id":"","url":"https://api.github.com/users/Charrondev","html_url":"https://github.com/Charrondev","followers_url":"https://api.github.com/users/Charrondev/followers","following_url":"https://api.github.com/users/Charrondev/following{/other_user}","gists_url":"https://api.github.com/users/Charrondev/gists{/gist_id}","starred_url":"https://api.github.com/users/Charrondev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charrondev/subscriptions","organizations_url":"https://api.github.com/users/Charrondev/orgs","repos_url":"https://api.github.com/users/Charrondev/repos","events_url":"https://api.github.com/users/Charrondev/events{/privacy}","received_events_url":"https://api.github.com/users/Charrondev/received_events","type":"User","site_admin":false},"body":"Closes #215 \r\n\r\nAdds a document on the HeroImage plugin. I've marked the version as `2.6`. After speaking with @linc we will symlink this to allow the clusters and add it to the whitelist for the next release.","created_at":"2018-02-08T19:33:24Z","updated_at":"2018-02-08T21:43:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69a3016dafc14f8d239596aebb1930ca212fa7a2","assignee":{"login":"slafleche","id":19651440,"avatar_url":"https://avatars1.githubusercontent.com/u/19651440?v=4","gravatar_id":"","url":"https://api.github.com/users/slafleche","html_url":"https://github.com/slafleche","followers_url":"https://api.github.com/users/slafleche/followers","following_url":"https://api.github.com/users/slafleche/following{/other_user}","gists_url":"https://api.github.com/users/slafleche/gists{/gist_id}","starred_url":"https://api.github.com/users/slafleche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slafleche/subscriptions","organizations_url":"https://api.github.com/users/slafleche/orgs","repos_url":"https://api.github.com/users/slafleche/repos","events_url":"https://api.github.com/users/slafleche/events{/privacy}","received_events_url":"https://api.github.com/users/slafleche/received_events","type":"User","site_admin":false},"assignees":[{"login":"slafleche","id":19651440,"avatar_url":"https://avatars1.githubusercontent.com/u/19651440?v=4","gravatar_id":"","url":"https://api.github.com/users/slafleche","html_url":"https://github.com/slafleche","followers_url":"https://api.github.com/users/slafleche/followers","following_url":"https://api.github.com/users/slafleche/following{/other_user}","gists_url":"https://api.github.com/users/slafleche/gists{/gist_id}","starred_url":"https://api.github.com/users/slafleche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slafleche/subscriptions","organizations_url":"https://api.github.com/users/slafleche/orgs","repos_url":"https://api.github.com/users/slafleche/repos","events_url":"https://api.github.com/users/slafleche/events{/privacy}","received_events_url":"https://api.github.com/users/slafleche/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":{"url":"https://api.github.com/repos/vanilla/docs/milestones/45","html_url":"https://github.com/vanilla/docs/milestone/45","labels_url":"https://api.github.com/repos/vanilla/docs/milestones/45/labels","id":3098056,"number":45,"title":"2018-02-21","description":"","creator":{"login":"Charrondev","id":1770056,"avatar_url":"https://avatars0.githubusercontent.com/u/1770056?v=4","gravatar_id":"","url":"https://api.github.com/users/Charrondev","html_url":"https://github.com/Charrondev","followers_url":"https://api.github.com/users/Charrondev/followers","following_url":"https://api.github.com/users/Charrondev/following{/other_user}","gists_url":"https://api.github.com/users/Charrondev/gists{/gist_id}","starred_url":"https://api.github.com/users/Charrondev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Charrondev/subscriptions","organizations_url":"https://api.github.com/users/Charrondev/orgs","repos_url":"https://api.github.com/users/Charrondev/repos","events_url":"https://api.github.com/users/Charrondev/events{/privacy}","received_events_url":"https://api.github.com/users/Charrondev/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2018-02-07T21:40:56Z","updated_at":"2018-02-08T20:18:48Z","due_on":"2018-02-21T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/vanilla/docs/pulls/223/commits","review_comments_url":"https://api.github.com/repos/vanilla/docs/pulls/223/comments","review_comment_url":"https://api.github.com/repos/vanilla/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vanilla/docs/issues/223/comments","statuses_url":"https://api.github.com/repos/vanilla/docs/statuses/90b533fdbdcfbddeed1cd5fca8eb80f11cf62429","head":{"label":"vanilla:feature/hero-image","ref":"feature/hero-image","sha":"90b533fdbdcfbddeed1cd5fca8eb80f11cf62429","user":{"login":"vanilla","id":7443552,"avatar_url":"https://avatars1.githubusercontent.com/u/7443552?v=4","gravatar_id":"","url":"https://api.github.com/users/vanilla","html_url":"https://github.com/vanilla","followers_url":"https://api.github.com/users/vanilla/followers","following_url":"https://api.github.com/users/vanilla/following{/other_user}","gists_url":"https://api.github.com/users/vanilla/gists{/gist_id}","starred_url":"https://api.github.com/users/vanilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanilla/subscriptions","organizations_url":"https://api.github.com/users/vanilla/orgs","repos_url":"https://api.github.com/users/vanilla/repos","events_url":"https://api.github.com/users/vanilla/events{/privacy}","received_events_url":"https://api.github.com/users/vanilla/received_events","type":"Organization","site_admin":false},"repo":{"id":61308445,"name":"docs","full_name":"vanilla/docs","owner":{"login":"vanilla","id":7443552,"avatar_url":"https://avatars1.githubusercontent.com/u/7443552?v=4","gravatar_id":"","url":"https://api.github.com/users/vanilla","html_url":"https://github.com/vanilla","followers_url":"https://api.github.com/users/vanilla/followers","following_url":"https://api.github.com/users/vanilla/following{/other_user}","gists_url":"https://api.github.com/users/vanilla/gists{/gist_id}","starred_url":"https://api.github.com/users/vanilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanilla/subscriptions","organizations_url":"https://api.github.com/users/vanilla/orgs","repos_url":"https://api.github.com/users/vanilla/repos","events_url":"https://api.github.com/users/vanilla/events{/privacy}","received_events_url":"https://api.github.com/users/vanilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vanilla/docs","description":"User and developer documentation for Vanilla Forums. ","fork":false,"url":"https://api.github.com/repos/vanilla/docs","forks_url":"https://api.github.com/repos/vanilla/docs/forks","keys_url":"https://api.github.com/repos/vanilla/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vanilla/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vanilla/docs/teams","hooks_url":"https://api.github.com/repos/vanilla/docs/hooks","issue_events_url":"https://api.github.com/repos/vanilla/docs/issues/events{/number}","events_url":"https://api.github.com/repos/vanilla/docs/events","assignees_url":"https://api.github.com/repos/vanilla/docs/assignees{/user}","branches_url":"https://api.github.com/repos/vanilla/docs/branches{/branch}","tags_url":"https://api.github.com/repos/vanilla/docs/tags","blobs_url":"https://api.github.com/repos/vanilla/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vanilla/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vanilla/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/vanilla/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vanilla/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/vanilla/docs/languages","stargazers_url":"https://api.github.com/repos/vanilla/docs/stargazers","contributors_url":"https://api.github.com/repos/vanilla/docs/contributors","subscribers_url":"https://api.github.com/repos/vanilla/docs/subscribers","subscription_url":"https://api.github.com/repos/vanilla/docs/subscription","commits_url":"https://api.github.com/repos/vanilla/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/vanilla/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/vanilla/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/vanilla/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/vanilla/docs/contents/{+path}","compare_url":"https://api.github.com/repos/vanilla/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vanilla/docs/merges","archive_url":"https://api.github.com/repos/vanilla/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vanilla/docs/downloads","issues_url":"https://api.github.com/repos/vanilla/docs/issues{/number}","pulls_url":"https://api.github.com/repos/vanilla/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/vanilla/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/vanilla/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vanilla/docs/labels{/name}","releases_url":"https://api.github.com/repos/vanilla/docs/releases{/id}","deployments_url":"https://api.github.com/repos/vanilla/docs/deployments","created_at":"2016-06-16T16:15:55Z","updated_at":"2017-10-06T16:15:02Z","pushed_at":"2018-02-08T19:33:25Z","git_url":"git://github.com/vanilla/docs.git","ssh_url":"git@github.com:vanilla/docs.git","clone_url":"https://github.com/vanilla/docs.git","svn_url":"https://github.com/vanilla/docs","homepage":"http://docs.vanillaforums.com","size":14613,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":19,"open_issues":37,"watchers":2,"default_branch":"master"}},"base":{"label":"vanilla:master","ref":"master","sha":"c85d5a1f986c0b399341a3e02e878e77c3fe25c9","user":{"login":"vanilla","id":7443552,"avatar_url":"https://avatars1.githubusercontent.com/u/7443552?v=4","gravatar_id":"","url":"https://api.github.com/users/vanilla","html_url":"https://github.com/vanilla","followers_url":"https://api.github.com/users/vanilla/followers","following_url":"https://api.github.com/users/vanilla/following{/other_user}","gists_url":"https://api.github.com/users/vanilla/gists{/gist_id}","starred_url":"https://api.github.com/users/vanilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanilla/subscriptions","organizations_url":"https://api.github.com/users/vanilla/orgs","repos_url":"https://api.github.com/users/vanilla/repos","events_url":"https://api.github.com/users/vanilla/events{/privacy}","received_events_url":"https://api.github.com/users/vanilla/received_events","type":"Organization","site_admin":false},"repo":{"id":61308445,"name":"docs","full_name":"vanilla/docs","owner":{"login":"vanilla","id":7443552,"avatar_url":"https://avatars1.githubusercontent.com/u/7443552?v=4","gravatar_id":"","url":"https://api.github.com/users/vanilla","html_url":"https://github.com/vanilla","followers_url":"https://api.github.com/users/vanilla/followers","following_url":"https://api.github.com/users/vanilla/following{/other_user}","gists_url":"https://api.github.com/users/vanilla/gists{/gist_id}","starred_url":"https://api.github.com/users/vanilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanilla/subscriptions","organizations_url":"https://api.github.com/users/vanilla/orgs","repos_url":"https://api.github.com/users/vanilla/repos","events_url":"https://api.github.com/users/vanilla/events{/privacy}","received_events_url":"https://api.github.com/users/vanilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vanilla/docs","description":"User and developer documentation for Vanilla Forums. ","fork":false,"url":"https://api.github.com/repos/vanilla/docs","forks_url":"https://api.github.com/repos/vanilla/docs/forks","keys_url":"https://api.github.com/repos/vanilla/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vanilla/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vanilla/docs/teams","hooks_url":"https://api.github.com/repos/vanilla/docs/hooks","issue_events_url":"https://api.github.com/repos/vanilla/docs/issues/events{/number}","events_url":"https://api.github.com/repos/vanilla/docs/events","assignees_url":"https://api.github.com/repos/vanilla/docs/assignees{/user}","branches_url":"https://api.github.com/repos/vanilla/docs/branches{/branch}","tags_url":"https://api.github.com/repos/vanilla/docs/tags","blobs_url":"https://api.github.com/repos/vanilla/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vanilla/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vanilla/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/vanilla/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vanilla/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/vanilla/docs/languages","stargazers_url":"https://api.github.com/repos/vanilla/docs/stargazers","contributors_url":"https://api.github.com/repos/vanilla/docs/contributors","subscribers_url":"https://api.github.com/repos/vanilla/docs/subscribers","subscription_url":"https://api.github.com/repos/vanilla/docs/subscription","commits_url":"https://api.github.com/repos/vanilla/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/vanilla/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/vanilla/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/vanilla/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/vanilla/docs/contents/{+path}","compare_url":"https://api.github.com/repos/vanilla/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vanilla/docs/merges","archive_url":"https://api.github.com/repos/vanilla/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vanilla/docs/downloads","issues_url":"https://api.github.com/repos/vanilla/docs/issues{/number}","pulls_url":"https://api.github.com/repos/vanilla/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/vanilla/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/vanilla/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vanilla/docs/labels{/name}","releases_url":"https://api.github.com/repos/vanilla/docs/releases{/id}","deployments_url":"https://api.github.com/repos/vanilla/docs/deployments","created_at":"2016-06-16T16:15:55Z","updated_at":"2017-10-06T16:15:02Z","pushed_at":"2018-02-08T19:33:25Z","git_url":"git://github.com/vanilla/docs.git","ssh_url":"git@github.com:vanilla/docs.git","clone_url":"https://github.com/vanilla/docs.git","svn_url":"https://github.com/vanilla/docs","homepage":"http://docs.vanillaforums.com","size":14613,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":19,"open_issues":37,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vanilla/docs/pulls/223"},"html":{"href":"https://github.com/vanilla/docs/pull/223"},"issue":{"href":"https://api.github.com/repos/vanilla/docs/issues/223"},"comments":{"href":"https://api.github.com/repos/vanilla/docs/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/vanilla/docs/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/vanilla/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vanilla/docs/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/vanilla/docs/statuses/90b533fdbdcfbddeed1cd5fca8eb80f11cf62429"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"slafleche"}}