{"action":"created","comment":{"url":"https://api.github.com/repos/vanilla/docs/pulls/comments/175544646","pull_request_review_id":105090046,"id":175544646,"diff_hunk":"@@ -0,0 +1,53 @@\n+---\n+title: Theming Modules\n+tags:\n+- Theming Modules\n+- Theming\n+- Modules\n+- Developers\n+- Addons\n+category: addons\n+menu:\n+  developer:\n+    parent: addons\n+    weight: 0\n+\n+---\n+\n+{{% cloudfeature %}}\n+\n+\n+## Group Search Module\n+\n+The groups page has a search field, but if you with to move it somewhere, else, you can. There are 2 ways to add it to your theme.\n+\n+Note that the custom CSS class and the button contents is **optional** and will change the markup if used.\n+\n+### Adding Group Search Module - With Smarty\n+\n+```smarty\n+{module name=\"GroupSearchModule\" buttonContents=\"<span class='myCustomButtonContents'>Search Groups</span>\" cssClass=\"customSearch\"}\n+``` \n+\n+### Adding Group Search Module - With PHP\n+\n+```PHP\n+if (Gdn::addonManager()->isEnabled('groups', Vanilla\\Addon::TYPE_ADDON)) { // Make sure we have groups enablecd","path":"content/developer/addons/theming-modules.md","position":35,"original_position":35,"commit_id":"fb7a70c7ce1714a3008f07dbd99926f2734772f7","original_commit_id":"fb7a70c7ce1714a3008f07dbd99926f2734772f7","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":"Typo at the end here \"enablecd\"\r\n\r\nAlso is this the way we want to do these checks now? In the past I've always seen it done with a class check. \r\n\r\n```php\r\nif (class_exists(\"GroupSearchModule\")) {\r\n  // Instantiate module here\r\n}\r\n```","created_at":"2018-03-19T18:42:07Z","updated_at":"2018-03-19T18:43:12Z","html_url":"https://github.com/vanilla/docs/pull/241#discussion_r175544646","pull_request_url":"https://api.github.com/repos/vanilla/docs/pulls/241","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/vanilla/docs/pulls/comments/175544646"},"html":{"href":"https://github.com/vanilla/docs/pull/241#discussion_r175544646"},"pull_request":{"href":"https://api.github.com/repos/vanilla/docs/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/vanilla/docs/pulls/241","id":175934430,"html_url":"https://github.com/vanilla/docs/pull/241","diff_url":"https://github.com/vanilla/docs/pull/241.diff","patch_url":"https://github.com/vanilla/docs/pull/241.patch","issue_url":"https://api.github.com/repos/vanilla/docs/issues/241","number":241,"state":"open","locked":false,"title":"Added \"Group Module\" section to \"Theming Modules\" page","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":"The new `theming-modules.md` page is intended to contain the documentation for multiple modules. I'm starting with just the Group Search Module.\r\n\r\nAlso note the `/feature/group-search` branch might get more information when we add the back-end functionality for the group search.","created_at":"2018-03-19T15:24:04Z","updated_at":"2018-03-19T18:43:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe11cff5aae34f11685c4f9b1185b7076037eede","assignee":{"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},"assignees":[{"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}],"requested_reviewers":[{"login":"igraziatto","id":31521020,"avatar_url":"https://avatars3.githubusercontent.com/u/31521020?v=4","gravatar_id":"","url":"https://api.github.com/users/igraziatto","html_url":"https://github.com/igraziatto","followers_url":"https://api.github.com/users/igraziatto/followers","following_url":"https://api.github.com/users/igraziatto/following{/other_user}","gists_url":"https://api.github.com/users/igraziatto/gists{/gist_id}","starred_url":"https://api.github.com/users/igraziatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igraziatto/subscriptions","organizations_url":"https://api.github.com/users/igraziatto/orgs","repos_url":"https://api.github.com/users/igraziatto/repos","events_url":"https://api.github.com/users/igraziatto/events{/privacy}","received_events_url":"https://api.github.com/users/igraziatto/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vanilla/docs/pulls/241/commits","review_comments_url":"https://api.github.com/repos/vanilla/docs/pulls/241/comments","review_comment_url":"https://api.github.com/repos/vanilla/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vanilla/docs/issues/241/comments","statuses_url":"https://api.github.com/repos/vanilla/docs/statuses/fb7a70c7ce1714a3008f07dbd99926f2734772f7","head":{"label":"vanilla:feature/group-search-module","ref":"feature/group-search-module","sha":"fb7a70c7ce1714a3008f07dbd99926f2734772f7","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":"2018-03-16T19:39:47Z","pushed_at":"2018-03-19T15:24:05Z","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":15035,"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":20,"mirror_url":null,"archived":false,"open_issues_count":47,"license":null,"forks":20,"open_issues":47,"watchers":2,"default_branch":"master"}},"base":{"label":"vanilla:feature/group-search","ref":"feature/group-search","sha":"cf11a14bb5dc34413826b61ae5ea905836504509","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":"2018-03-16T19:39:47Z","pushed_at":"2018-03-19T15:24:05Z","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":15035,"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":20,"mirror_url":null,"archived":false,"open_issues_count":47,"license":null,"forks":20,"open_issues":47,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vanilla/docs/pulls/241"},"html":{"href":"https://github.com/vanilla/docs/pull/241"},"issue":{"href":"https://api.github.com/repos/vanilla/docs/issues/241"},"comments":{"href":"https://api.github.com/repos/vanilla/docs/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/vanilla/docs/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/vanilla/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vanilla/docs/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/vanilla/docs/statuses/fb7a70c7ce1714a3008f07dbd99926f2734772f7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"charrondev"}}