{"action":"reopened","issue":{"url":"https://api.github.com/repos/ElusiveMind/alpha_pagination/issues/2","labels_url":"https://api.github.com/repos/ElusiveMind/alpha_pagination/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ElusiveMind/alpha_pagination/issues/2/comments","events_url":"https://api.github.com/repos/ElusiveMind/alpha_pagination/issues/2/events","html_url":"https://github.com/ElusiveMind/alpha_pagination/issues/2","id":106496154,"number":2,"title":"Add option to set css classes on list","user":{"login":"mikezahno","id":698824,"avatar_url":"https://avatars.githubusercontent.com/u/698824?v=3","gravatar_id":"","url":"https://api.github.com/users/mikezahno","html_url":"https://github.com/mikezahno","followers_url":"https://api.github.com/users/mikezahno/followers","following_url":"https://api.github.com/users/mikezahno/following{/other_user}","gists_url":"https://api.github.com/users/mikezahno/gists{/gist_id}","starred_url":"https://api.github.com/users/mikezahno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikezahno/subscriptions","organizations_url":"https://api.github.com/users/mikezahno/orgs","repos_url":"https://api.github.com/users/mikezahno/repos","events_url":"https://api.github.com/users/mikezahno/events{/privacy}","received_events_url":"https://api.github.com/users/mikezahno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ElusiveMind/alpha_pagination/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"ElusiveMind","id":195676,"avatar_url":"https://avatars.githubusercontent.com/u/195676?v=3","gravatar_id":"","url":"https://api.github.com/users/ElusiveMind","html_url":"https://github.com/ElusiveMind","followers_url":"https://api.github.com/users/ElusiveMind/followers","following_url":"https://api.github.com/users/ElusiveMind/following{/other_user}","gists_url":"https://api.github.com/users/ElusiveMind/gists{/gist_id}","starred_url":"https://api.github.com/users/ElusiveMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElusiveMind/subscriptions","organizations_url":"https://api.github.com/users/ElusiveMind/orgs","repos_url":"https://api.github.com/users/ElusiveMind/repos","events_url":"https://api.github.com/users/ElusiveMind/events{/privacy}","received_events_url":"https://api.github.com/users/ElusiveMind/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-09-15T07:13:56Z","updated_at":"2015-09-29T11:48:38Z","closed_at":null,"body":"I created a quick hack for adding css classes to the (ul) list. See:\r\nhttps://gist.github.com/mikezahno/e6a0a97a717d98103b5f\r\n\r\nMaybe this could be included in a future version.\r\n\r\n```patch\r\n--- alpha_pagination_handler_pagination.inc\t2015-09-15 08:52:14.000000000 +0200\r\n+++ alpha_pagination_handler_pagination.inc\t2015-09-15 08:40:02.000000000 +0200\r\n@@ -26,6 +26,10 @@\r\n       'default' => 'title',\r\n       'translatable' => TRUE,\r\n     );\r\n+    $options['paginate_class'] = array(\r\n+      'default' => 'alpha-pagination',\r\n+      'translatable' => FALSE,\r\n+    );\r\n     return $options;\r\n   }\r\n \r\n@@ -68,6 +72,13 @@\r\n       '#default_value' => $this->options['paginate_view_field'],\r\n       '#description' => t('This will be the content field that drives the pagination.'),\r\n     );\r\n+\r\n+    $form['paginate_class'] = array(\r\n+      '#title' => t('CSS Class'),\r\n+      '#type' => 'textfield',\r\n+      '#default_value' => $this->options['paginate_class'],\r\n+      '#description' => t('Add custom CSS Classes'),\r\n+    );\r\n   }\r\n \r\n   /**\r\n@@ -211,11 +222,21 @@\r\n         $pager_option;\r\n     }\r\n \r\n+    // Classes\r\n+    $pagination_classes = explode(' ', $this->options['paginate_class']);\r\n+    foreach ($pagination_classes as &$class) {\r\n+      $class = views_clean_css_identifier($class);\r\n+    }\r\n+    $pagination_classes = implode(' ', $pagination_classes);\r\n+\r\n     $elements['paginator'][] = array(\r\n       '#theme' => 'item_list',\r\n+      '#attributes' => array('class' => $pagination_classes),\r\n       '#items' => $items,\r\n     );\r\n \r\n     return drupal_render($elements);\r\n   }\r\n-}\r\n\\ No newline at end of file\r\n+}\r\n+\r\n+\r\n```"}}