Commit e8998e39 authored by Shawn Kwang's avatar Shawn Kwang

Drupal: Add dropdown box to templates for flag_abuse_reason.

parent 41f46bd5
......@@ -54,6 +54,7 @@
* @see zen_process()
*/
?>
<div class="<?php print $classes; ?> clearfix">
<?php
static $authors;
......@@ -82,6 +83,9 @@
}
?>
<?php
$ddname = 'flag_abuse_reason-dropdown-comment-' . $comment->cid;
?>
<div class="user">
<?php
$account = user_load(array('uid' => $comment->uid));
......@@ -179,6 +183,15 @@
<span class="label">)</span>
</div>
<?php endif; ?>
<div class="dropdown">
<div id="<?php print $ddname; ?>" class="dropdown-content">
<?php print flag_create_link('abuse_comment_a', $comment->cid); ?>
<?php print flag_create_link('abuse_comment_b', $comment->cid); ?>
<?php print flag_create_link('abuse_comment_c', $comment->cid); ?>
<?php print flag_create_link('abuse_comment_d', $comment->cid); ?>
<?php print flag_create_link('abuse_comment_e', $comment->cid); ?>
</div>
</div>
<div class="content">
<?php print $content; ?>
<?php if ($signature AND $show_signatures): ?>
......
......@@ -137,6 +137,9 @@
<div id="node-<?php print $node->nid; ?>-alt" class="<?php print $classes; ?> clearfix<?php echo ($first_page) ? '' : ' not-first-page'; ?>">
<?php endif; ?>
<?php
$ddname = 'flag_abuse_reason-dropdown-node-' . $node->nid;
?>
<div class="user">
<?php
$account = user_load(array('uid' => $uid));
......@@ -212,6 +215,15 @@
</div>
<?php endif; ?>
<div class="dropdown">
<div id="<?php print $ddname; ?>" class="dropdown-content">
<?php print flag_create_link('abuse_node_a', $node->nid); ?>
<?php print flag_create_link('abuse_node_b', $node->nid); ?>
<?php print flag_create_link('abuse_node_c', $node->nid); ?>
<?php print flag_create_link('abuse_node_d', $node->nid); ?>
<?php print flag_create_link('abuse_node_e', $node->nid); ?>
</div>
</div>
<div class="content">
<?php print $content; ?>
<?php if ($signature AND $show_signatures): ?>
......
......@@ -153,6 +153,9 @@
<div id="node-<?php print $node->nid; ?>-alt" class="<?php print $classes; ?> clearfix<?php echo ($first_page) ? '' : ' not-first-page'; ?>">
<?php endif; ?>
<?php
$ddname = 'flag_abuse_reason-dropdown-node-' . $node->nid;
?>
<div class="user">
<?php
$account = user_load(array('uid' => $uid));
......@@ -228,6 +231,15 @@
</div>
<?php endif; ?>
<div class="dropdown">
<div id="<?php print $ddname; ?>" class="dropdown-content">
<?php print flag_create_link('abuse_node_a', $node->nid); ?>
<?php print flag_create_link('abuse_node_b', $node->nid); ?>
<?php print flag_create_link('abuse_node_c', $node->nid); ?>
<?php print flag_create_link('abuse_node_d', $node->nid); ?>
<?php print flag_create_link('abuse_node_e', $node->nid); ?>
</div>
</div>
<div class="content">
<?php print $content; ?>
<?php if ($signature AND $show_signatures): ?>
......
......@@ -231,3 +231,15 @@ if ($user->uid AND ($user->uid != $account->uid)) {
</div>
<?php endif; ?>
</div>
<?php
$ddname = 'flag_abuse_reason-dropdown-user-' . $account->uid;
?>
<div class="dropdown">
<div id="<?php print $ddname; ?>" class="dropdown-content">
<?php print flag_create_link('abuse_user_a', $account->uid); ?>
<?php print flag_create_link('abuse_user_b', $account->uid); ?>
<?php print flag_create_link('abuse_user_c', $account->uid); ?>
<?php print flag_create_link('abuse_user_d', $account->uid); ?>
<?php print flag_create_link('abuse_user_e', $account->uid); ?>
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment