{"action":"created","comment":{"url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/comments/170443343","pull_request_review_id":99131894,"id":170443343,"diff_hunk":"@@ -0,0 +1,192 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Functions to support theme settings for UCGY theme.\n+ * Functions to add configuration setting for UCGY theme in Appearance => Settings\n+ */\n+\n+\n+/**\n+ * Implements hook_form_FORM_ID_alter() for system_theme_settings\n+ *\n+ * @param $form\n+ *   The form.\n+ * @param $form_state\n+ *   The form state.\n+ */\n+function ucgy_theme_form_system_theme_settings_alter(&$form, &$form_state) {\n+\n+  // check for 'administer sponsorship information' permissions if user can edit custom pre footer\n+  if (user_access('administer sponsorship information')) {\n+\n+    $form['custom_pre_footer'] = array(\n+      '#type' => 'fieldset',\n+      '#title' => t('Custom pre-footer'),\n+      '#collapsible' => TRUE,\n+      '#collapsed' => TRUE\n+    );\n+\n+    // checkbox to show pre-footer\n+    $form['custom_pre_footer']['pre_footer_show_flag'] = array(\n+      '#type' => 'checkbox',\n+      '#title' => t('Show custom pre-footer'),\n+      '#required' => FALSE,\n+      '#default_value' => theme_get_setting('pre_footer_show_flag')\n+    );\n+\n+    // Logo 1 - image + alt + url\n+    $form['custom_pre_footer']['logo_1'] = array(\n+      '#type' => 'fieldset',\n+      '#title' => t('Pre-footer logo 1'),\n+      '#collapsible' => TRUE\n+    );\n+\n+    $form['custom_pre_footer']['logo_1']['pre_footer_logo_1_image'] = array(\n+      '#type' => 'managed_file',\n+      '#title' => t('Logo 1 image'),\n+      '#description' => t('Allowed file extensions: gif png jpg jpeg. Max size: 500x200px.'),\n+      '#required' => FALSE,\n+      '#upload_location' => file_default_scheme() . '://theme/pre-footer/',\n+      '#default_value' => theme_get_setting('pre_footer_logo_1_image'),\n+      '#upload_validators' => array(\n+        'file_validate_extensions' => array('gif png jpg jpeg'),","path":"sites/all/themes/ucgy_theme/theme-settings.php","position":53,"original_position":53,"commit_id":"1bf73c046e97b3a670341552b81796a5a5049ff9","original_commit_id":"1bf73c046e97b3a670341552b81796a5a5049ff9","user":{"login":"dpfitzsi","id":17204071,"avatar_url":"https://avatars3.githubusercontent.com/u/17204071?v=4","gravatar_id":"","url":"https://api.github.com/users/dpfitzsi","html_url":"https://github.com/dpfitzsi","followers_url":"https://api.github.com/users/dpfitzsi/followers","following_url":"https://api.github.com/users/dpfitzsi/following{/other_user}","gists_url":"https://api.github.com/users/dpfitzsi/gists{/gist_id}","starred_url":"https://api.github.com/users/dpfitzsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpfitzsi/subscriptions","organizations_url":"https://api.github.com/users/dpfitzsi/orgs","repos_url":"https://api.github.com/users/dpfitzsi/repos","events_url":"https://api.github.com/users/dpfitzsi/events{/privacy}","received_events_url":"https://api.github.com/users/dpfitzsi/received_events","type":"User","site_admin":false},"body":"short syntax","created_at":"2018-02-25T06:33:06Z","updated_at":"2018-02-25T06:42:00Z","html_url":"https://github.com/ucalgary/www.ucalgary/pull/947#discussion_r170443343","pull_request_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/comments/170443343"},"html":{"href":"https://github.com/ucalgary/www.ucalgary/pull/947#discussion_r170443343"},"pull_request":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947"}}},"pull_request":{"url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947","id":171213231,"html_url":"https://github.com/ucalgary/www.ucalgary/pull/947","diff_url":"https://github.com/ucalgary/www.ucalgary/pull/947.diff","patch_url":"https://github.com/ucalgary/www.ucalgary/pull/947.patch","issue_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/947","number":947,"state":"open","locked":false,"title":"Olympics Oval Navigation","user":{"login":"dpfitzsi","id":17204071,"avatar_url":"https://avatars3.githubusercontent.com/u/17204071?v=4","gravatar_id":"","url":"https://api.github.com/users/dpfitzsi","html_url":"https://github.com/dpfitzsi","followers_url":"https://api.github.com/users/dpfitzsi/followers","following_url":"https://api.github.com/users/dpfitzsi/following{/other_user}","gists_url":"https://api.github.com/users/dpfitzsi/gists{/gist_id}","starred_url":"https://api.github.com/users/dpfitzsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpfitzsi/subscriptions","organizations_url":"https://api.github.com/users/dpfitzsi/orgs","repos_url":"https://api.github.com/users/dpfitzsi/repos","events_url":"https://api.github.com/users/dpfitzsi/events{/privacy}","received_events_url":"https://api.github.com/users/dpfitzsi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-25T04:54:24Z","updated_at":"2018-02-25T06:42:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2053ded178ddea4834f8575a7ea8dbf553c020c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947/commits","review_comments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947/comments","review_comment_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/947/comments","statuses_url":"https://api.github.com/repos/ucalgary/www.ucalgary/statuses/1bf73c046e97b3a670341552b81796a5a5049ff9","head":{"label":"ucalgary:oval_navigation","ref":"oval_navigation","sha":"1bf73c046e97b3a670341552b81796a5a5049ff9","user":{"login":"ucalgary","id":3494388,"avatar_url":"https://avatars0.githubusercontent.com/u/3494388?v=4","gravatar_id":"","url":"https://api.github.com/users/ucalgary","html_url":"https://github.com/ucalgary","followers_url":"https://api.github.com/users/ucalgary/followers","following_url":"https://api.github.com/users/ucalgary/following{/other_user}","gists_url":"https://api.github.com/users/ucalgary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucalgary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucalgary/subscriptions","organizations_url":"https://api.github.com/users/ucalgary/orgs","repos_url":"https://api.github.com/users/ucalgary/repos","events_url":"https://api.github.com/users/ucalgary/events{/privacy}","received_events_url":"https://api.github.com/users/ucalgary/received_events","type":"Organization","site_admin":false},"repo":{"id":60719719,"name":"www.ucalgary","full_name":"ucalgary/www.ucalgary","owner":{"login":"ucalgary","id":3494388,"avatar_url":"https://avatars0.githubusercontent.com/u/3494388?v=4","gravatar_id":"","url":"https://api.github.com/users/ucalgary","html_url":"https://github.com/ucalgary","followers_url":"https://api.github.com/users/ucalgary/followers","following_url":"https://api.github.com/users/ucalgary/following{/other_user}","gists_url":"https://api.github.com/users/ucalgary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucalgary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucalgary/subscriptions","organizations_url":"https://api.github.com/users/ucalgary/orgs","repos_url":"https://api.github.com/users/ucalgary/repos","events_url":"https://api.github.com/users/ucalgary/events{/privacy}","received_events_url":"https://api.github.com/users/ucalgary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucalgary/www.ucalgary","description":"The deploy package for www.ucalgary.ca","fork":false,"url":"https://api.github.com/repos/ucalgary/www.ucalgary","forks_url":"https://api.github.com/repos/ucalgary/www.ucalgary/forks","keys_url":"https://api.github.com/repos/ucalgary/www.ucalgary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucalgary/www.ucalgary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucalgary/www.ucalgary/teams","hooks_url":"https://api.github.com/repos/ucalgary/www.ucalgary/hooks","issue_events_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/events{/number}","events_url":"https://api.github.com/repos/ucalgary/www.ucalgary/events","assignees_url":"https://api.github.com/repos/ucalgary/www.ucalgary/assignees{/user}","branches_url":"https://api.github.com/repos/ucalgary/www.ucalgary/branches{/branch}","tags_url":"https://api.github.com/repos/ucalgary/www.ucalgary/tags","blobs_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucalgary/www.ucalgary/statuses/{sha}","languages_url":"https://api.github.com/repos/ucalgary/www.ucalgary/languages","stargazers_url":"https://api.github.com/repos/ucalgary/www.ucalgary/stargazers","contributors_url":"https://api.github.com/repos/ucalgary/www.ucalgary/contributors","subscribers_url":"https://api.github.com/repos/ucalgary/www.ucalgary/subscribers","subscription_url":"https://api.github.com/repos/ucalgary/www.ucalgary/subscription","commits_url":"https://api.github.com/repos/ucalgary/www.ucalgary/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucalgary/www.ucalgary/contents/{+path}","compare_url":"https://api.github.com/repos/ucalgary/www.ucalgary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucalgary/www.ucalgary/merges","archive_url":"https://api.github.com/repos/ucalgary/www.ucalgary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucalgary/www.ucalgary/downloads","issues_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues{/number}","pulls_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls{/number}","milestones_url":"https://api.github.com/repos/ucalgary/www.ucalgary/milestones{/number}","notifications_url":"https://api.github.com/repos/ucalgary/www.ucalgary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucalgary/www.ucalgary/labels{/name}","releases_url":"https://api.github.com/repos/ucalgary/www.ucalgary/releases{/id}","deployments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/deployments","created_at":"2016-06-08T18:13:45Z","updated_at":"2017-12-15T03:27:07Z","pushed_at":"2018-02-25T04:54:24Z","git_url":"git://github.com/ucalgary/www.ucalgary.git","ssh_url":"git@github.com:ucalgary/www.ucalgary.git","clone_url":"https://github.com/ucalgary/www.ucalgary.git","svn_url":"https://github.com/ucalgary/www.ucalgary","homepage":null,"size":107671,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"ucalgary:master","ref":"master","sha":"744b8140ed566fd436c0fa33fd8ea36a53b36303","user":{"login":"ucalgary","id":3494388,"avatar_url":"https://avatars0.githubusercontent.com/u/3494388?v=4","gravatar_id":"","url":"https://api.github.com/users/ucalgary","html_url":"https://github.com/ucalgary","followers_url":"https://api.github.com/users/ucalgary/followers","following_url":"https://api.github.com/users/ucalgary/following{/other_user}","gists_url":"https://api.github.com/users/ucalgary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucalgary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucalgary/subscriptions","organizations_url":"https://api.github.com/users/ucalgary/orgs","repos_url":"https://api.github.com/users/ucalgary/repos","events_url":"https://api.github.com/users/ucalgary/events{/privacy}","received_events_url":"https://api.github.com/users/ucalgary/received_events","type":"Organization","site_admin":false},"repo":{"id":60719719,"name":"www.ucalgary","full_name":"ucalgary/www.ucalgary","owner":{"login":"ucalgary","id":3494388,"avatar_url":"https://avatars0.githubusercontent.com/u/3494388?v=4","gravatar_id":"","url":"https://api.github.com/users/ucalgary","html_url":"https://github.com/ucalgary","followers_url":"https://api.github.com/users/ucalgary/followers","following_url":"https://api.github.com/users/ucalgary/following{/other_user}","gists_url":"https://api.github.com/users/ucalgary/gists{/gist_id}","starred_url":"https://api.github.com/users/ucalgary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucalgary/subscriptions","organizations_url":"https://api.github.com/users/ucalgary/orgs","repos_url":"https://api.github.com/users/ucalgary/repos","events_url":"https://api.github.com/users/ucalgary/events{/privacy}","received_events_url":"https://api.github.com/users/ucalgary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucalgary/www.ucalgary","description":"The deploy package for www.ucalgary.ca","fork":false,"url":"https://api.github.com/repos/ucalgary/www.ucalgary","forks_url":"https://api.github.com/repos/ucalgary/www.ucalgary/forks","keys_url":"https://api.github.com/repos/ucalgary/www.ucalgary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucalgary/www.ucalgary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucalgary/www.ucalgary/teams","hooks_url":"https://api.github.com/repos/ucalgary/www.ucalgary/hooks","issue_events_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/events{/number}","events_url":"https://api.github.com/repos/ucalgary/www.ucalgary/events","assignees_url":"https://api.github.com/repos/ucalgary/www.ucalgary/assignees{/user}","branches_url":"https://api.github.com/repos/ucalgary/www.ucalgary/branches{/branch}","tags_url":"https://api.github.com/repos/ucalgary/www.ucalgary/tags","blobs_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucalgary/www.ucalgary/statuses/{sha}","languages_url":"https://api.github.com/repos/ucalgary/www.ucalgary/languages","stargazers_url":"https://api.github.com/repos/ucalgary/www.ucalgary/stargazers","contributors_url":"https://api.github.com/repos/ucalgary/www.ucalgary/contributors","subscribers_url":"https://api.github.com/repos/ucalgary/www.ucalgary/subscribers","subscription_url":"https://api.github.com/repos/ucalgary/www.ucalgary/subscription","commits_url":"https://api.github.com/repos/ucalgary/www.ucalgary/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucalgary/www.ucalgary/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucalgary/www.ucalgary/contents/{+path}","compare_url":"https://api.github.com/repos/ucalgary/www.ucalgary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucalgary/www.ucalgary/merges","archive_url":"https://api.github.com/repos/ucalgary/www.ucalgary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucalgary/www.ucalgary/downloads","issues_url":"https://api.github.com/repos/ucalgary/www.ucalgary/issues{/number}","pulls_url":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls{/number}","milestones_url":"https://api.github.com/repos/ucalgary/www.ucalgary/milestones{/number}","notifications_url":"https://api.github.com/repos/ucalgary/www.ucalgary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucalgary/www.ucalgary/labels{/name}","releases_url":"https://api.github.com/repos/ucalgary/www.ucalgary/releases{/id}","deployments_url":"https://api.github.com/repos/ucalgary/www.ucalgary/deployments","created_at":"2016-06-08T18:13:45Z","updated_at":"2017-12-15T03:27:07Z","pushed_at":"2018-02-25T04:54:24Z","git_url":"git://github.com/ucalgary/www.ucalgary.git","ssh_url":"git@github.com:ucalgary/www.ucalgary.git","clone_url":"https://github.com/ucalgary/www.ucalgary.git","svn_url":"https://github.com/ucalgary/www.ucalgary","homepage":null,"size":107671,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947"},"html":{"href":"https://github.com/ucalgary/www.ucalgary/pull/947"},"issue":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/947"},"comments":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/issues/947/comments"},"review_comments":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947/comments"},"review_comment":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/pulls/947/commits"},"statuses":{"href":"https://api.github.com/repos/ucalgary/www.ucalgary/statuses/1bf73c046e97b3a670341552b81796a5a5049ff9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dpfitzsi"}}