{"action":"created","comment":{"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/comments/47846884","id":47846884,"diff_hunk":"@@ -3,15 +3,13 @@\n   <default>\n     <reference name=\"head\">\n         <action method=\"addItem\">\n-          <type>skin_js</type>\n-          <name>js/somethingdigital/back-to-top.js</name>\n-        </action>\n-        <action method=\"addItem\">\n           <type>skin_css</type>\n           <name>css/somethingdigital/back-to-top.css</name>\n         </action>\n     </reference>\n     <reference name=\"before_body_end\">\n+        <block type=\"core/template\" name=\"back.to.top.config\" template=\"somethingdigital/backtotop/data/config.phtml\" />","path":"app/design/frontend/base/default/layout/somethingdigital/backtotop/somethingdigital_backtotop.xml","position":13,"original_position":13,"commit_id":"dfd6d0ec935de619b43b13130aedc945162b48e3","original_commit_id":"dfd6d0ec935de619b43b13130aedc945162b48e3","user":{"login":"gil--","id":3484527,"avatar_url":"https://avatars.githubusercontent.com/u/3484527?v=3","gravatar_id":"","url":"https://api.github.com/users/gil--","html_url":"https://github.com/gil--","followers_url":"https://api.github.com/users/gil--/followers","following_url":"https://api.github.com/users/gil--/following{/other_user}","gists_url":"https://api.github.com/users/gil--/gists{/gist_id}","starred_url":"https://api.github.com/users/gil--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gil--/subscriptions","organizations_url":"https://api.github.com/users/gil--/orgs","repos_url":"https://api.github.com/users/gil--/repos","events_url":"https://api.github.com/users/gil--/events{/privacy}","received_events_url":"https://api.github.com/users/gil--/received_events","type":"User","site_admin":false},"body":"You could put the check here:\r\n\r\n```\r\n<action method=\"setTemplate\" ifconfig=\"sd_backtotop/enabled\">\r\n                    <template>somethingdigital/backtotop/back-to-top.phtm</template>\r\n                </action>\r\n```\r\n\r\ninstead of in the template.","created_at":"2015-12-16T22:58:21Z","updated_at":"2015-12-16T22:58:21Z","html_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1#discussion_r47846884","pull_request_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/comments/47846884"},"html":{"href":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1#discussion_r47846884"},"pull_request":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1","id":53909454,"html_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1","diff_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1.diff","patch_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1.patch","issue_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/1","number":1,"state":"open","locked":false,"title":"Add backend options","user":{"login":"Militree","id":9058117,"avatar_url":"https://avatars.githubusercontent.com/u/9058117?v=3","gravatar_id":"","url":"https://api.github.com/users/Militree","html_url":"https://github.com/Militree","followers_url":"https://api.github.com/users/Militree/followers","following_url":"https://api.github.com/users/Militree/following{/other_user}","gists_url":"https://api.github.com/users/Militree/gists{/gist_id}","starred_url":"https://api.github.com/users/Militree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Militree/subscriptions","organizations_url":"https://api.github.com/users/Militree/orgs","repos_url":"https://api.github.com/users/Militree/repos","events_url":"https://api.github.com/users/Militree/events{/privacy}","received_events_url":"https://api.github.com/users/Militree/received_events","type":"User","site_admin":false},"body":"Add the following options to the backend:\r\n\r\n- Enabled: turn on/off back to top\r\n- Persist Method: Choose whether to have the btt button show after scrolling 300px or\r\n\tonly when scrolling up.\r\n- Scroll Speed: Speed in which the page scrolls to the top\r\n- Text: Text that is displayed for 'back to top'","created_at":"2015-12-16T22:39:39Z","updated_at":"2015-12-16T22:58:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e29856ff5e85cc5db95fe1d8868616106a37e22b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/1/comments","statuses_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/statuses/dfd6d0ec935de619b43b13130aedc945162b48e3","head":{"label":"Militree:feature/add-backend-options","ref":"feature/add-backend-options","sha":"dfd6d0ec935de619b43b13130aedc945162b48e3","user":{"login":"Militree","id":9058117,"avatar_url":"https://avatars.githubusercontent.com/u/9058117?v=3","gravatar_id":"","url":"https://api.github.com/users/Militree","html_url":"https://github.com/Militree","followers_url":"https://api.github.com/users/Militree/followers","following_url":"https://api.github.com/users/Militree/following{/other_user}","gists_url":"https://api.github.com/users/Militree/gists{/gist_id}","starred_url":"https://api.github.com/users/Militree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Militree/subscriptions","organizations_url":"https://api.github.com/users/Militree/orgs","repos_url":"https://api.github.com/users/Militree/repos","events_url":"https://api.github.com/users/Militree/events{/privacy}","received_events_url":"https://api.github.com/users/Militree/received_events","type":"User","site_admin":false},"repo":{"id":48133843,"name":"SomethingDigital_BackToTop","full_name":"Militree/SomethingDigital_BackToTop","owner":{"login":"Militree","id":9058117,"avatar_url":"https://avatars.githubusercontent.com/u/9058117?v=3","gravatar_id":"","url":"https://api.github.com/users/Militree","html_url":"https://github.com/Militree","followers_url":"https://api.github.com/users/Militree/followers","following_url":"https://api.github.com/users/Militree/following{/other_user}","gists_url":"https://api.github.com/users/Militree/gists{/gist_id}","starred_url":"https://api.github.com/users/Militree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Militree/subscriptions","organizations_url":"https://api.github.com/users/Militree/orgs","repos_url":"https://api.github.com/users/Militree/repos","events_url":"https://api.github.com/users/Militree/events{/privacy}","received_events_url":"https://api.github.com/users/Militree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Militree/SomethingDigital_BackToTop","description":"Add a back to top link","fork":true,"url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop","forks_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/forks","keys_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/teams","hooks_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/hooks","issue_events_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/issues/events{/number}","events_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/events","assignees_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/assignees{/user}","branches_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/branches{/branch}","tags_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/tags","blobs_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/statuses/{sha}","languages_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/languages","stargazers_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/stargazers","contributors_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/contributors","subscribers_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/subscribers","subscription_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/subscription","commits_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/contents/{+path}","compare_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/merges","archive_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/downloads","issues_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/issues{/number}","pulls_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/pulls{/number}","milestones_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/milestones{/number}","notifications_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/labels{/name}","releases_url":"https://api.github.com/repos/Militree/SomethingDigital_BackToTop/releases{/id}","created_at":"2015-12-16T20:37:06Z","updated_at":"2015-12-16T20:37:07Z","pushed_at":"2015-12-16T22:51:56Z","git_url":"git://github.com/Militree/SomethingDigital_BackToTop.git","ssh_url":"git@github.com:Militree/SomethingDigital_BackToTop.git","clone_url":"https://github.com/Militree/SomethingDigital_BackToTop.git","svn_url":"https://github.com/Militree/SomethingDigital_BackToTop","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"sdinteractive:develop","ref":"develop","sha":"608df7dcf672076f0329f29edc9efe8aa4c0e8ca","user":{"login":"sdinteractive","id":5023230,"avatar_url":"https://avatars.githubusercontent.com/u/5023230?v=3","gravatar_id":"","url":"https://api.github.com/users/sdinteractive","html_url":"https://github.com/sdinteractive","followers_url":"https://api.github.com/users/sdinteractive/followers","following_url":"https://api.github.com/users/sdinteractive/following{/other_user}","gists_url":"https://api.github.com/users/sdinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/sdinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdinteractive/subscriptions","organizations_url":"https://api.github.com/users/sdinteractive/orgs","repos_url":"https://api.github.com/users/sdinteractive/repos","events_url":"https://api.github.com/users/sdinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/sdinteractive/received_events","type":"Organization","site_admin":false},"repo":{"id":48120732,"name":"SomethingDigital_BackToTop","full_name":"sdinteractive/SomethingDigital_BackToTop","owner":{"login":"sdinteractive","id":5023230,"avatar_url":"https://avatars.githubusercontent.com/u/5023230?v=3","gravatar_id":"","url":"https://api.github.com/users/sdinteractive","html_url":"https://github.com/sdinteractive","followers_url":"https://api.github.com/users/sdinteractive/followers","following_url":"https://api.github.com/users/sdinteractive/following{/other_user}","gists_url":"https://api.github.com/users/sdinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/sdinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdinteractive/subscriptions","organizations_url":"https://api.github.com/users/sdinteractive/orgs","repos_url":"https://api.github.com/users/sdinteractive/repos","events_url":"https://api.github.com/users/sdinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/sdinteractive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop","description":"Add a back to top link","fork":false,"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop","forks_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/forks","keys_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/teams","hooks_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/hooks","issue_events_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/events{/number}","events_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/events","assignees_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/assignees{/user}","branches_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/branches{/branch}","tags_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/tags","blobs_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/statuses/{sha}","languages_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/languages","stargazers_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/stargazers","contributors_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/contributors","subscribers_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/subscribers","subscription_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/subscription","commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/contents/{+path}","compare_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/merges","archive_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/downloads","issues_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues{/number}","pulls_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls{/number}","milestones_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/milestones{/number}","notifications_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/labels{/name}","releases_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/releases{/id}","created_at":"2015-12-16T16:06:08Z","updated_at":"2015-12-16T20:28:40Z","pushed_at":"2015-12-16T22:51:56Z","git_url":"git://github.com/sdinteractive/SomethingDigital_BackToTop.git","ssh_url":"git@github.com:sdinteractive/SomethingDigital_BackToTop.git","clone_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop.git","svn_url":"https://github.com/sdinteractive/SomethingDigital_BackToTop","homepage":null,"size":4,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1"},"html":{"href":"https://github.com/sdinteractive/SomethingDigital_BackToTop/pull/1"},"issue":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/1"},"comments":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_BackToTop/statuses/dfd6d0ec935de619b43b13130aedc945162b48e3"}}}}