{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/comments/39163913","id":39163913,"diff_hunk":"@@ -44,31 +46,22 @@ public function __construct()\n \t\t$this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_);\n \t}\n \n-\tpublic function install()\n+\tpublic function renderWidget($hookName = null, array $configuration = [])\n \t{\n-\t\treturn (parent::install() && $this->registerHook('displayNav'));\n+\t\t$this->context->smarty->assign($this->getWidgetVariables($hookName, $configuration));","path":"blocklanguages.php","position":null,"original_position":19,"commit_id":"518ff81aefebca94867b495fee94599a447aaa28","original_commit_id":"445fd4a342f83fd28fbcd438bf43617661cfb9f0","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"body":"Fixed, thx. Unfortunately it doesn't help with the leakages in {widget_block}","created_at":"2015-09-10T14:10:45Z","updated_at":"2015-09-10T14:10:45Z","html_url":"https://github.com/PrestaShop/blocklanguages/pull/8#discussion_r39163913","pull_request_url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/comments/39163913"},"html":{"href":"https://github.com/PrestaShop/blocklanguages/pull/8#discussion_r39163913"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8","id":44562763,"html_url":"https://github.com/PrestaShop/blocklanguages/pull/8","diff_url":"https://github.com/PrestaShop/blocklanguages/pull/8.diff","patch_url":"https://github.com/PrestaShop/blocklanguages/pull/8.patch","issue_url":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/8","number":8,"state":"open","locked":false,"title":"Switch to widget system","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"body":"This allows you to go crazy with pure CSS and do things like this:\r\n\r\n```css\r\n.language-selector {\r\n  position: absolute;\r\n  display: block;\r\n  width: 150px;\r\n  background-color: white;\r\n  text-align: center;\r\n  margin: 0;\r\n  padding: 0\r\n}\r\n\r\n.language-selector:before {\r\n  content: attr(data-current-language-name);\r\n  border: 1px solid #ccc;\r\n  padding: 3px;\r\n  display: block;\r\n}\r\n\r\n.language-selector li {\r\n  display: none;\r\n  padding: 3px;\r\n  background-color: #666;\r\n}\r\n\r\n.language-selector li a {\r\n  color: white;\r\n  text-decoration: none;\r\n}\r\n\r\n.language-selector li a.current {\r\n  font-style: italic;\r\n}\r\n\r\n.language-selector:hover li {\r\n  display: block;\r\n}\r\n```","created_at":"2015-09-09T15:15:58Z","updated_at":"2015-09-10T14:10:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3abfb9852cc417c9d165bf1a8cf3c55b659bdac4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/8/comments","statuses_url":"https://api.github.com/repos/PrestaShop/blocklanguages/statuses/518ff81aefebca94867b495fee94599a447aaa28","head":{"label":"djfm:feat/starter-theme","ref":"feat/starter-theme","sha":"518ff81aefebca94867b495fee94599a447aaa28","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"repo":{"id":42115136,"name":"blocklanguages","full_name":"djfm/blocklanguages","owner":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djfm/blocklanguages","description":"","fork":true,"url":"https://api.github.com/repos/djfm/blocklanguages","forks_url":"https://api.github.com/repos/djfm/blocklanguages/forks","keys_url":"https://api.github.com/repos/djfm/blocklanguages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djfm/blocklanguages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djfm/blocklanguages/teams","hooks_url":"https://api.github.com/repos/djfm/blocklanguages/hooks","issue_events_url":"https://api.github.com/repos/djfm/blocklanguages/issues/events{/number}","events_url":"https://api.github.com/repos/djfm/blocklanguages/events","assignees_url":"https://api.github.com/repos/djfm/blocklanguages/assignees{/user}","branches_url":"https://api.github.com/repos/djfm/blocklanguages/branches{/branch}","tags_url":"https://api.github.com/repos/djfm/blocklanguages/tags","blobs_url":"https://api.github.com/repos/djfm/blocklanguages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djfm/blocklanguages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djfm/blocklanguages/git/refs{/sha}","trees_url":"https://api.github.com/repos/djfm/blocklanguages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djfm/blocklanguages/statuses/{sha}","languages_url":"https://api.github.com/repos/djfm/blocklanguages/languages","stargazers_url":"https://api.github.com/repos/djfm/blocklanguages/stargazers","contributors_url":"https://api.github.com/repos/djfm/blocklanguages/contributors","subscribers_url":"https://api.github.com/repos/djfm/blocklanguages/subscribers","subscription_url":"https://api.github.com/repos/djfm/blocklanguages/subscription","commits_url":"https://api.github.com/repos/djfm/blocklanguages/commits{/sha}","git_commits_url":"https://api.github.com/repos/djfm/blocklanguages/git/commits{/sha}","comments_url":"https://api.github.com/repos/djfm/blocklanguages/comments{/number}","issue_comment_url":"https://api.github.com/repos/djfm/blocklanguages/issues/comments{/number}","contents_url":"https://api.github.com/repos/djfm/blocklanguages/contents/{+path}","compare_url":"https://api.github.com/repos/djfm/blocklanguages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djfm/blocklanguages/merges","archive_url":"https://api.github.com/repos/djfm/blocklanguages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djfm/blocklanguages/downloads","issues_url":"https://api.github.com/repos/djfm/blocklanguages/issues{/number}","pulls_url":"https://api.github.com/repos/djfm/blocklanguages/pulls{/number}","milestones_url":"https://api.github.com/repos/djfm/blocklanguages/milestones{/number}","notifications_url":"https://api.github.com/repos/djfm/blocklanguages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djfm/blocklanguages/labels{/name}","releases_url":"https://api.github.com/repos/djfm/blocklanguages/releases{/id}","created_at":"2015-09-08T13:50:46Z","updated_at":"2015-09-08T13:50:46Z","pushed_at":"2015-09-10T14:08:27Z","git_url":"git://github.com/djfm/blocklanguages.git","ssh_url":"git@github.com:djfm/blocklanguages.git","clone_url":"https://github.com/djfm/blocklanguages.git","svn_url":"https://github.com/djfm/blocklanguages","homepage":"http://www.prestashop.com","size":217,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PrestaShop:feat/starter-theme","ref":"feat/starter-theme","sha":"4f785dd62047c540add6afb7e7a7e6a2ca269875","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":17943146,"name":"blocklanguages","full_name":"PrestaShop/blocklanguages","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/blocklanguages","description":"","fork":false,"url":"https://api.github.com/repos/PrestaShop/blocklanguages","forks_url":"https://api.github.com/repos/PrestaShop/blocklanguages/forks","keys_url":"https://api.github.com/repos/PrestaShop/blocklanguages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/blocklanguages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/blocklanguages/teams","hooks_url":"https://api.github.com/repos/PrestaShop/blocklanguages/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/blocklanguages/events","assignees_url":"https://api.github.com/repos/PrestaShop/blocklanguages/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/blocklanguages/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/blocklanguages/tags","blobs_url":"https://api.github.com/repos/PrestaShop/blocklanguages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/blocklanguages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/blocklanguages/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/blocklanguages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/blocklanguages/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/blocklanguages/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/blocklanguages/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/blocklanguages/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/blocklanguages/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/blocklanguages/subscription","commits_url":"https://api.github.com/repos/PrestaShop/blocklanguages/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/blocklanguages/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/blocklanguages/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/blocklanguages/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/blocklanguages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/blocklanguages/merges","archive_url":"https://api.github.com/repos/PrestaShop/blocklanguages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/blocklanguages/downloads","issues_url":"https://api.github.com/repos/PrestaShop/blocklanguages/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/blocklanguages/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/blocklanguages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/blocklanguages/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/blocklanguages/releases{/id}","created_at":"2014-03-20T13:16:54Z","updated_at":"2015-02-19T14:57:45Z","pushed_at":"2015-09-10T14:08:27Z","git_url":"git://github.com/PrestaShop/blocklanguages.git","ssh_url":"git@github.com:PrestaShop/blocklanguages.git","clone_url":"https://github.com/PrestaShop/blocklanguages.git","svn_url":"https://github.com/PrestaShop/blocklanguages","homepage":"http://www.prestashop.com","size":217,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8"},"html":{"href":"https://github.com/PrestaShop/blocklanguages/pull/8"},"issue":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/8"},"comments":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/blocklanguages/statuses/518ff81aefebca94867b495fee94599a447aaa28"}}}}