From cf4ab3b2df995597d1e19584a873efbdc5fbf9a6 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Mon, 11 Feb 2013 23:50:49 -0600 Subject: [PATCH] Use Bootstrap media object for listing comments http://twitter.github.com/bootstrap/components.html#media - Introduce lib/comments.php: contains Roots_Walker_Comment - Update templates/comments.php to use the new walker, general clean up --- functions.php | 1 + lib/comments.php | 64 ++++++++++++++++++++++++++++++ templates/comments.php | 88 ++++++++++++++---------------------------- 3 files changed, 94 insertions(+), 59 deletions(-) create mode 100644 lib/comments.php diff --git a/functions.php b/functions.php index ad98cfd..62e8841 100644 --- a/functions.php +++ b/functions.php @@ -12,6 +12,7 @@ require_once locate_template('/lib/config.php'); // Configuration require_once locate_template('/lib/activation.php'); // Theme activation require_once locate_template('/lib/cleanup.php'); // Cleanup require_once locate_template('/lib/nav.php'); // Custom nav modifications +require_once locate_template('/lib/comments.php'); // Custom comments modifications require_once locate_template('/lib/rewrites.php'); // URL rewriting for assets require_once locate_template('/lib/htaccess.php'); // HTML5 Boilerplate .htaccess require_once locate_template('/lib/widgets.php'); // Sidebars and widgets diff --git a/lib/comments.php b/lib/comments.php new file mode 100644 index 0000000..d4defd8 --- /dev/null +++ b/lib/comments.php @@ -0,0 +1,64 @@ + +