summaryrefslogtreecommitdiff
path: root/modules/comment/views
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-04 00:27:22 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-10-04 00:27:22 -0600
commit3e6ba7acc3291f2268cbe9c9bef0a492b557babb (patch)
tree079c1bd09ab1cfcf35524f2e541c586a95f205e4 /modules/comment/views
parent9145331fd420ec3fe86833a7b9567ec42f1d84e8 (diff)
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
Diffstat (limited to 'modules/comment/views')
-rw-r--r--modules/comment/views/admin_block_recent_comments.html.php4
-rw-r--r--modules/comment/views/admin_comments.html.php20
-rw-r--r--modules/comment/views/comment.html.php6
-rw-r--r--modules/comment/views/comments.html.php14
4 files changed, 22 insertions, 22 deletions
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index ca0d1c0b..7941e02d 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -1,9 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul>
<? foreach ($comments as $i => $comment): ?>
- <li class="<?= ($i % 2 == 0) ? "g-even-row" : "g-odd-row" ?>">
+ <li class="<?= ($i % 2 == 0) ? "g-even" : "g-odd" ?>">
<img src="<?= $comment->author()->avatar_url(32, $theme->url("images/avatar.jpg", true)) ?>"
- class="gAvatar"
+ class="g-avatar"
alt="<?= html::clean_attribute($comment->author_name()) ?>"
width="32"
height="32" />
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php
index 82de378c..0e8dd525 100644
--- a/modules/comment/views/admin_comments.html.php
+++ b/modules/comment/views/admin_comments.html.php
@@ -6,7 +6,7 @@
$.get(set_state_url.replace("__STATE__", state).replace("__ID__", id),
{},
function() {
- $("#gComment-" + id).slideUp();
+ $("#g-comment-" + id).slideUp();
update_menu();
});
}
@@ -18,7 +18,7 @@
$.get(delete_url.replace("__ID__", id),
{},
function() {
- $("#gComment-" + id).slideUp();
+ $("#g-comment-" + id).slideUp();
update_menu();
});
}
@@ -27,18 +27,18 @@
$.get(<?= html::js_string(url::site("admin/comments/menu_labels")) ?>, {},
function(data) {
for (var i = 0; i < data.length; i++) {
- $("#gAdminCommentsMenu li:eq(" + i + ") a").html(data[i]);
+ $("#g-admin-comments-menu li:eq(" + i + ") a").html(data[i]);
}
},
"json");
}
</script>
-<div id="gAdminComments">
+<div id="g-admin-comments">
<h1> <?= t("Manage Comments") ?> </h1>
<!-- @todo: Highlight active menu option -->
- <div id="gAdminCommentsMenu">
+ <div id="g-admin-comments-menu">
<?= $menu ?>
</div>
@@ -90,7 +90,7 @@
</div>
<? endif ?>
- <table id="gAdminCommentsList">
+ <table id="g-admin-commentsList">
<tr>
<th>
<?= t("Author") ?>
@@ -103,11 +103,11 @@
</th>
</tr>
<? foreach ($comments as $i => $comment): ?>
- <tr id="gComment-<?= $comment->id ?>" class="<?= ($i % 2 == 0) ? "g-odd-row" : "g-even-row" ?>">
+ <tr id="g-comment-<?= $comment->id ?>" class="<?= ($i % 2 == 0) ? "g-odd" : "g-even" ?>">
<td>
<a href="#">
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
- class="gAvatar"
+ class="g-avatar"
alt="<?= html::clean_attribute($comment->author_name()) ?>"
width="40"
height="40" />
@@ -118,7 +118,7 @@
<td>
<div class="g-right">
<? $item = $comment->item() ?>
- <div class="gItem gPhoto">
+ <div class="g-item g-photo">
<a href="<?= $item->url() ?>">
<? if ($item->has_thumb()): ?>
<img src="<?= $item->thumb_url() ?>"
@@ -135,7 +135,7 @@
<?= nl2br(html::purify($comment->text)) ?>
</td>
<td>
- <ul class="gButtonSetVertical">
+ <ul class="g-buttonset-vertical">
<? if ($comment->state != "unpublished"): ?>
<li>
<a href="javascript:set_state('unpublished',<?=$comment->id?>)"
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index ce4e197d..c7957c15 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -1,9 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<li id="gComment-<?= $comment->id; ?>">
- <p class="gAuthor">
+<li id="g-comment-<?= $comment->id; ?>">
+ <p class="g-author">
<a href="#">
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
- class="gAvatar"
+ class="g-avatar"
alt="<?= html::clean_attribute($comment->author_name()) ?>"
width="40"
height="40" />
diff --git a/modules/comment/views/comments.html.php b/modules/comment/views/comments.html.php
index ee4a8ad6..636f1522 100644
--- a/modules/comment/views/comments.html.php
+++ b/modules/comment/views/comments.html.php
@@ -1,23 +1,23 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
- <a href="<?= url::site("form/add/comments/{$item->id})") ?>" id="gAddCommentButton"
+ <a href="<?= url::site("form/add/comments/{$item->id})") ?>" id="g-admin-comment-button"
class="g-button ui-corner-all ui-icon-left ui-state-default right">
<span class="ui-icon ui-icon-comment"></span>
<?= t("Add a comment") ?>
</a>
-<div id="gCommentDetail">
+<div id="g-comment-detail">
<? if (!$comments->count()): ?>
-<p id="gNoCommentsYet">
+<p id="g-no-comments-yet">
<?= t("No comments yet. Be the first to <a %attrs>comment</a>!",
- array("attrs" => html::mark_clean("id= \"gNoComments\" href=\"" . url::site("form/add/comments/{$item->id}") . "\" class=\"showCommentForm\""))) ?>
+ array("attrs" => html::mark_clean("id= \"g-no-comments\" href=\"" . url::site("form/add/comments/{$item->id}") . "\" class=\"showCommentForm\""))) ?>
</p>
<? endif ?>
<ul>
<? foreach ($comments as $comment): ?>
- <li id="gComment-<?= $comment->id ?>">
- <p class="gAuthor">
+ <li id="g-comment-<?= $comment->id ?>">
+ <p class="g-author">
<a href="#">
<img src="<?= $comment->author()->avatar_url(40, $theme->url("images/avatar.jpg", true)) ?>"
- class="gAvatar"
+ class="g-avatar"
alt="<?= html::clean_attribute($comment->author_name()) ?>"
width="40"
height="40" />