{"action":"created","comment":{"url":"https://api.github.com/repos/brenoalvs/monk/pulls/comments/80541448","id":80541448,"diff_hunk":"@@ -106,19 +106,63 @@ public function enqueue_scripts() {\n \t/**\n \t * Function to register the settings page of the plugin\n \t *\n-\t * @since \t1.0.0\n+\t * @since    1.0.0\n \t */\n-\tpublic function register_monk_settings() {\n+\tpublic function monk_add_menu_page() {\n+\t\tadd_menu_page(\n+\t\t\t'Monk Settings',\n+\t\t\t'Monk',\n+\t\t\t'manage_options',\n+\t\t\t'monk',\n+\t\t\tarray( $this, 'monk_options' ),\n+\t\t\t'dashicons-translation',\n+\t\t\t3 );\n+\t}\n+\n+\t/**\n+\t * Function to create a section for General Options in the administration menu\n+\t *\n+\t * @since    1.0.0\n+\t*/\n+\tpublic function monk_options_init() {\n+\t\tregister_setting( 'generalOptions', 'monk_language' );\n \t\tadd_settings_section(\n-\t\t'monk_settings_section',\t\t\t\t //ID\n-\t\t'Monk',\t\t\t\t\t\t\t\t\t //Title\n-\t\tarray( $this, 'monk_settings_fields' ),\t //Callback function\n-\t\t'general'\t\t\t\t\t\t\t\t //Page into witch this options will be added\n+\t\t\t'monk_general_options',\n+\t\t\t'General options',","path":"admin/class-monk-admin.php","position":41,"original_position":41,"commit_id":"aa8afc2f8c463bd63b03afa8a010efe1720b09bd","original_commit_id":"aa8afc2f8c463bd63b03afa8a010efe1720b09bd","user":{"login":"brenoalvs","id":5307192,"avatar_url":"https://avatars.githubusercontent.com/u/5307192?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoalvs","html_url":"https://github.com/brenoalvs","followers_url":"https://api.github.com/users/brenoalvs/followers","following_url":"https://api.github.com/users/brenoalvs/following{/other_user}","gists_url":"https://api.github.com/users/brenoalvs/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoalvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoalvs/subscriptions","organizations_url":"https://api.github.com/users/brenoalvs/orgs","repos_url":"https://api.github.com/users/brenoalvs/repos","events_url":"https://api.github.com/users/brenoalvs/events{/privacy}","received_events_url":"https://api.github.com/users/brenoalvs/received_events","type":"User","site_admin":false},"body":"Section and Fields names needs localization using `__` function","created_at":"2016-09-26T18:31:15Z","updated_at":"2016-09-26T18:31:15Z","html_url":"https://github.com/brenoalvs/monk/pull/10#discussion_r80541448","pull_request_url":"https://api.github.com/repos/brenoalvs/monk/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/comments/80541448"},"html":{"href":"https://github.com/brenoalvs/monk/pull/10#discussion_r80541448"},"pull_request":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/brenoalvs/monk/pulls/10","id":86030267,"html_url":"https://github.com/brenoalvs/monk/pull/10","diff_url":"https://github.com/brenoalvs/monk/pull/10.diff","patch_url":"https://github.com/brenoalvs/monk/pull/10.patch","issue_url":"https://api.github.com/repos/brenoalvs/monk/issues/10","number":10,"state":"open","locked":false,"title":"Admin settings","user":{"login":"chandonn","id":22301205,"avatar_url":"https://avatars.githubusercontent.com/u/22301205?v=3","gravatar_id":"","url":"https://api.github.com/users/chandonn","html_url":"https://github.com/chandonn","followers_url":"https://api.github.com/users/chandonn/followers","following_url":"https://api.github.com/users/chandonn/following{/other_user}","gists_url":"https://api.github.com/users/chandonn/gists{/gist_id}","starred_url":"https://api.github.com/users/chandonn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chandonn/subscriptions","organizations_url":"https://api.github.com/users/chandonn/orgs","repos_url":"https://api.github.com/users/chandonn/repos","events_url":"https://api.github.com/users/chandonn/events{/privacy}","received_events_url":"https://api.github.com/users/chandonn/received_events","type":"User","site_admin":false},"body":"Related to #1 and #3 ","created_at":"2016-09-20T18:26:42Z","updated_at":"2016-09-26T18:33:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daaa06e2709fc3368c3675ac2cd89b13132b2d17","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/brenoalvs/monk/pulls/10/commits","review_comments_url":"https://api.github.com/repos/brenoalvs/monk/pulls/10/comments","review_comment_url":"https://api.github.com/repos/brenoalvs/monk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brenoalvs/monk/issues/10/comments","statuses_url":"https://api.github.com/repos/brenoalvs/monk/statuses/aa8afc2f8c463bd63b03afa8a010efe1720b09bd","head":{"label":"brenoalvs:admin-settings","ref":"admin-settings","sha":"aa8afc2f8c463bd63b03afa8a010efe1720b09bd","user":{"login":"brenoalvs","id":5307192,"avatar_url":"https://avatars.githubusercontent.com/u/5307192?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoalvs","html_url":"https://github.com/brenoalvs","followers_url":"https://api.github.com/users/brenoalvs/followers","following_url":"https://api.github.com/users/brenoalvs/following{/other_user}","gists_url":"https://api.github.com/users/brenoalvs/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoalvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoalvs/subscriptions","organizations_url":"https://api.github.com/users/brenoalvs/orgs","repos_url":"https://api.github.com/users/brenoalvs/repos","events_url":"https://api.github.com/users/brenoalvs/events{/privacy}","received_events_url":"https://api.github.com/users/brenoalvs/received_events","type":"User","site_admin":false},"repo":{"id":68620048,"name":"monk","full_name":"brenoalvs/monk","owner":{"login":"brenoalvs","id":5307192,"avatar_url":"https://avatars.githubusercontent.com/u/5307192?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoalvs","html_url":"https://github.com/brenoalvs","followers_url":"https://api.github.com/users/brenoalvs/followers","following_url":"https://api.github.com/users/brenoalvs/following{/other_user}","gists_url":"https://api.github.com/users/brenoalvs/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoalvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoalvs/subscriptions","organizations_url":"https://api.github.com/users/brenoalvs/orgs","repos_url":"https://api.github.com/users/brenoalvs/repos","events_url":"https://api.github.com/users/brenoalvs/events{/privacy}","received_events_url":"https://api.github.com/users/brenoalvs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brenoalvs/monk","description":"An open source WordPress plugin to create multilanguage sites.","fork":false,"url":"https://api.github.com/repos/brenoalvs/monk","forks_url":"https://api.github.com/repos/brenoalvs/monk/forks","keys_url":"https://api.github.com/repos/brenoalvs/monk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brenoalvs/monk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brenoalvs/monk/teams","hooks_url":"https://api.github.com/repos/brenoalvs/monk/hooks","issue_events_url":"https://api.github.com/repos/brenoalvs/monk/issues/events{/number}","events_url":"https://api.github.com/repos/brenoalvs/monk/events","assignees_url":"https://api.github.com/repos/brenoalvs/monk/assignees{/user}","branches_url":"https://api.github.com/repos/brenoalvs/monk/branches{/branch}","tags_url":"https://api.github.com/repos/brenoalvs/monk/tags","blobs_url":"https://api.github.com/repos/brenoalvs/monk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brenoalvs/monk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brenoalvs/monk/git/refs{/sha}","trees_url":"https://api.github.com/repos/brenoalvs/monk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brenoalvs/monk/statuses/{sha}","languages_url":"https://api.github.com/repos/brenoalvs/monk/languages","stargazers_url":"https://api.github.com/repos/brenoalvs/monk/stargazers","contributors_url":"https://api.github.com/repos/brenoalvs/monk/contributors","subscribers_url":"https://api.github.com/repos/brenoalvs/monk/subscribers","subscription_url":"https://api.github.com/repos/brenoalvs/monk/subscription","commits_url":"https://api.github.com/repos/brenoalvs/monk/commits{/sha}","git_commits_url":"https://api.github.com/repos/brenoalvs/monk/git/commits{/sha}","comments_url":"https://api.github.com/repos/brenoalvs/monk/comments{/number}","issue_comment_url":"https://api.github.com/repos/brenoalvs/monk/issues/comments{/number}","contents_url":"https://api.github.com/repos/brenoalvs/monk/contents/{+path}","compare_url":"https://api.github.com/repos/brenoalvs/monk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brenoalvs/monk/merges","archive_url":"https://api.github.com/repos/brenoalvs/monk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brenoalvs/monk/downloads","issues_url":"https://api.github.com/repos/brenoalvs/monk/issues{/number}","pulls_url":"https://api.github.com/repos/brenoalvs/monk/pulls{/number}","milestones_url":"https://api.github.com/repos/brenoalvs/monk/milestones{/number}","notifications_url":"https://api.github.com/repos/brenoalvs/monk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brenoalvs/monk/labels{/name}","releases_url":"https://api.github.com/repos/brenoalvs/monk/releases{/id}","deployments_url":"https://api.github.com/repos/brenoalvs/monk/deployments","created_at":"2016-09-19T15:39:42Z","updated_at":"2016-09-25T03:01:01Z","pushed_at":"2016-09-26T18:24:03Z","git_url":"git://github.com/brenoalvs/monk.git","ssh_url":"git@github.com:brenoalvs/monk.git","clone_url":"https://github.com/brenoalvs/monk.git","svn_url":"https://github.com/brenoalvs/monk","homepage":null,"size":846,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":4,"default_branch":"master"}},"base":{"label":"brenoalvs:master","ref":"master","sha":"55078beae6888f0097c263efc6c4aca6c85dfb77","user":{"login":"brenoalvs","id":5307192,"avatar_url":"https://avatars.githubusercontent.com/u/5307192?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoalvs","html_url":"https://github.com/brenoalvs","followers_url":"https://api.github.com/users/brenoalvs/followers","following_url":"https://api.github.com/users/brenoalvs/following{/other_user}","gists_url":"https://api.github.com/users/brenoalvs/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoalvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoalvs/subscriptions","organizations_url":"https://api.github.com/users/brenoalvs/orgs","repos_url":"https://api.github.com/users/brenoalvs/repos","events_url":"https://api.github.com/users/brenoalvs/events{/privacy}","received_events_url":"https://api.github.com/users/brenoalvs/received_events","type":"User","site_admin":false},"repo":{"id":68620048,"name":"monk","full_name":"brenoalvs/monk","owner":{"login":"brenoalvs","id":5307192,"avatar_url":"https://avatars.githubusercontent.com/u/5307192?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoalvs","html_url":"https://github.com/brenoalvs","followers_url":"https://api.github.com/users/brenoalvs/followers","following_url":"https://api.github.com/users/brenoalvs/following{/other_user}","gists_url":"https://api.github.com/users/brenoalvs/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoalvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoalvs/subscriptions","organizations_url":"https://api.github.com/users/brenoalvs/orgs","repos_url":"https://api.github.com/users/brenoalvs/repos","events_url":"https://api.github.com/users/brenoalvs/events{/privacy}","received_events_url":"https://api.github.com/users/brenoalvs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brenoalvs/monk","description":"An open source WordPress plugin to create multilanguage sites.","fork":false,"url":"https://api.github.com/repos/brenoalvs/monk","forks_url":"https://api.github.com/repos/brenoalvs/monk/forks","keys_url":"https://api.github.com/repos/brenoalvs/monk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brenoalvs/monk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brenoalvs/monk/teams","hooks_url":"https://api.github.com/repos/brenoalvs/monk/hooks","issue_events_url":"https://api.github.com/repos/brenoalvs/monk/issues/events{/number}","events_url":"https://api.github.com/repos/brenoalvs/monk/events","assignees_url":"https://api.github.com/repos/brenoalvs/monk/assignees{/user}","branches_url":"https://api.github.com/repos/brenoalvs/monk/branches{/branch}","tags_url":"https://api.github.com/repos/brenoalvs/monk/tags","blobs_url":"https://api.github.com/repos/brenoalvs/monk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brenoalvs/monk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brenoalvs/monk/git/refs{/sha}","trees_url":"https://api.github.com/repos/brenoalvs/monk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brenoalvs/monk/statuses/{sha}","languages_url":"https://api.github.com/repos/brenoalvs/monk/languages","stargazers_url":"https://api.github.com/repos/brenoalvs/monk/stargazers","contributors_url":"https://api.github.com/repos/brenoalvs/monk/contributors","subscribers_url":"https://api.github.com/repos/brenoalvs/monk/subscribers","subscription_url":"https://api.github.com/repos/brenoalvs/monk/subscription","commits_url":"https://api.github.com/repos/brenoalvs/monk/commits{/sha}","git_commits_url":"https://api.github.com/repos/brenoalvs/monk/git/commits{/sha}","comments_url":"https://api.github.com/repos/brenoalvs/monk/comments{/number}","issue_comment_url":"https://api.github.com/repos/brenoalvs/monk/issues/comments{/number}","contents_url":"https://api.github.com/repos/brenoalvs/monk/contents/{+path}","compare_url":"https://api.github.com/repos/brenoalvs/monk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brenoalvs/monk/merges","archive_url":"https://api.github.com/repos/brenoalvs/monk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brenoalvs/monk/downloads","issues_url":"https://api.github.com/repos/brenoalvs/monk/issues{/number}","pulls_url":"https://api.github.com/repos/brenoalvs/monk/pulls{/number}","milestones_url":"https://api.github.com/repos/brenoalvs/monk/milestones{/number}","notifications_url":"https://api.github.com/repos/brenoalvs/monk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brenoalvs/monk/labels{/name}","releases_url":"https://api.github.com/repos/brenoalvs/monk/releases{/id}","deployments_url":"https://api.github.com/repos/brenoalvs/monk/deployments","created_at":"2016-09-19T15:39:42Z","updated_at":"2016-09-25T03:01:01Z","pushed_at":"2016-09-26T18:24:03Z","git_url":"git://github.com/brenoalvs/monk.git","ssh_url":"git@github.com:brenoalvs/monk.git","clone_url":"https://github.com/brenoalvs/monk.git","svn_url":"https://github.com/brenoalvs/monk","homepage":null,"size":846,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/10"},"html":{"href":"https://github.com/brenoalvs/monk/pull/10"},"issue":{"href":"https://api.github.com/repos/brenoalvs/monk/issues/10"},"comments":{"href":"https://api.github.com/repos/brenoalvs/monk/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brenoalvs/monk/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/brenoalvs/monk/statuses/aa8afc2f8c463bd63b03afa8a010efe1720b09bd"}}}}
{"actor":{"display_login":"brenoalvs"}}