function colabs_list_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?> <li <?php comment_class(); ?> > <div id="comment-<?php comment_ID(); ?> " class="comment-entry"> <?php if ('0' == $comment->comment_approved) { ?> <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'colabsthemes'); ?> </em> <?php } ?> <div class="comment-meta"> <div class="comment-author-avatar"> <?php commenter_link(); ?> </div> <div class="comment-author-meta"> <div class="comment-author-name"><?php echo get_comment_author_link(); ?> </div> <div class="comment-date"><strong><?php _e('on', 'colabsthemes'); ?> </strong> <?php printf(__('%1$s', 'colabsthemes'), get_comment_date()); ?> </div> </div> </div> <div class="comment-content"> <?php comment_text(); ?> </div> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'colabsthemes'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <br /> </div> <?php }
function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(); ?> > <div class="comment-author vcard"><?php commenter_link(); ?> </div> <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'your-theme'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID()); edit_comment_link(__('Edit', 'your-theme'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?> </div> <div class="comment-content"> <?php comment_text(); ?> </div> <?php // echo the comment reply link if ($args['type'] == 'all' || get_comment_type() == 'comment') { comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'your-theme'), 'login_text' => __('Log in to reply.', 'your-theme'), 'depth' => $depth, 'before' => '<div class="comment-reply-link">', 'after' => '</div>'))); } ?> <?php if ($comment->comment_approved == '0') { _e("\t\t\t\t\t<span class='info'>Your comment is awaiting moderation.</span>\n", 'your-theme'); } ?> <?php }
} if (isset($my_widget_num[$this_id])) { // See if the counter array has an entry for this sidebar $my_widget_num[$this_id]++; } else { // If not, create it starting with 1 $my_widget_num[$this_id] = 1; } $class = 'class="widget-' . $my_widget_num[$this_id] . ' '; // Add a widget number class for additional styling options if ($my_widget_num[$this_id] == 1) { // If this is the first widget $class .= 'first '; } elseif ($my_widget_num[$this_id] == count($arr_registered_widgets[$this_id])) { // If this is the last widget $class .= 'last '; } $params[0]['before_widget'] = str_replace('class="', $class, $params[0]['before_widget']); // Insert our new classes into "before widget" return $params; } /*custom comments*/ function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?>
function cp_custom_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; switch ($comment->comment_type) { case 'pingback': case 'trackback': ?> <li class="pingback"> <?php comment_author_link(); ?> <?php break; default: ?> <li <?php comment_class(); ?> > <a name="comment-<?php comment_ID(); ?> "></a> <?php if (get_comment_type() == 'comment') { ?> <div class="avatar"><?php commenter_avatar(); ?> </div> <?php } ?> <div class="comment-head"> <div class="user-meta"> <strong class="name"><?php commenter_link(); ?> </strong> <?php _e('on', APP_TD); ?> <?php if (get_comment_type() == 'comment') { ?> <a class="comment-permalink" href="<?php echo get_comment_link(); ?> "><?php echo get_comment_date(get_option('date_format')); ?> @ <?php echo get_comment_time(get_option('time_format')); ?> </a> <?php edit_comment_link(__('Edit', APP_TD), ' <span class="edit-link">(', ')</span>'); ?> <?php } ?> </div> <!-- /user-meta --> </div> <!-- /comment-head --> <div class="comment-entry" id="comment-<?php comment_ID(); ?> "> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <p class='unapproved'><?php _e('Your comment is awaiting moderation.', APP_TD); ?> </p> <?php } ?> <div class="clr"></div> <div class="reply"> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', APP_TD), 'login_text' => __('Log in to reply.', APP_TD), 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<div class="comment-reply-link">', 'after' => '</div>'))); ?> </div><!-- /reply --> </div><!-- /comment-entry --> <?php break; } }
function custom_comments($comment = false, $args = false, $depth = false, $post = false) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(); ?> > <?php //#FIXME: aşağıdaki komutlar wordpress in fonksiyonlarını kullanmalı ya da en azından fonksiyon tanımlanmalı. /* $queçok güzelry = "SELECT comment_arti_eksi FROM $wpdb->comment_arti_eksi WHERE comment_ID=" . get_comment_ID() . ";"; $user_count = $wpdb->get_var($wpdb->prepare($query)); echo '<p>User count is ' . $user_count . '</p>'; */ $query = "SELECT comment_arti_eksi FROM wp_comment_arti_eksi WHERE comment_ID = " . get_comment_ID() . ";"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); //print '<div class="commentHolder" style="position:relative;'; if ($row[comment_arti_eksi] == '+') { print '<div class="commentHolderArti" style="position:relative">'; print '<img width="25" src="' . get_site_url() . '/wp-content/themes/artilarieksileri/images/arti.png">'; } else { print '<div class="commentHolderEksi" style="position:relative">'; print '<img width="25" src="' . get_site_url() . '/wp-content/themes/artilarieksileri/images/eksi.png">'; } //print "<font style=\"font-size:20px\">$row[comment_arti_eksi]</font>"; //$allmiles=$wpdb->get //echo '<p>Total miles is '.$allmiles . '</p>'; ?> <!--<div class="commentContent">--> <?php comment_text(); ?> <span style="position:absolute;right:0"> <?php commenter_link(); ?> <?php print nicetime(get_comment_date('Y-n-j') . ' ' . get_comment_time('H:i')); ?> </span> <?php if ($comment->comment_approved == '0') { _e("<p class='unapproved'>Your comment is awaiting moderation.</p>\n", 'moov'); } ?> <!--</div>--> <?php php; ?> </div> <?php }
function custom_comments($comment = false, $args = false, $depth = false, $post = false) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(); ?> > <div class="commentHolder"> <div class="commentAuthor vcard"><?php commenter_link(); ?> </div> <div class="commentContent"> <?php $query = "SELECT comment_arti_eksi FROM comment_arti_eksi WHERE comment_ID=" . get_comment_ID(); print $wpdb->get_var($query, 0, 0); //$yorum_tip = $wpdb->get_results( "SELECT comment_arti_eksi FROM wp_comment_arti_eksi WHERE comment_ID=" . get_comment_ID()); //print ($yorum_tip); ?> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { _e("<p class='unapproved'>Your comment is awaiting moderation.</p>\n", 'moov'); } ?> </div> <div class="commentMeta"> <div class="commentOptions"> <?php if ($post) { _e('RE: <a href="' . $post['url'] . '"><em>' . $post['title'] . '</em></a>', 'moov'); } else { if ($args) { if ($args['type'] == 'all' || get_comment_type() == 'comment') { comment_reply_link(array_merge($args, array('reply_text' => __('<span class="icon iconReply"></span><em>Reply</em>', 'moov'), 'login_text' => __('<span class="icon iconReply"></span><em>Log in to reply</em>', 'moov'), 'depth' => $depth))); } } printf(__('<a href="%1$s" title="Permalink to this comment" class="comment-permalink"><span class="icon iconPermalink"></span><em>Permalink</em></a>', 'moov'), $post['url'] . '#comment-' . get_comment_ID()); } ?> </div> <div class="commentTime"><?php printf(__('%1$s <span class="metaSep">@</span> %2$s', 'moov'), get_comment_date(), get_comment_time()); ?> </div> </div> </div> <?php }
function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $GLOBALS['comment_depth'] = $depth; ?> <li id="comment-<?php comment_ID() ?>" class="<?php comment_class() ?>"> <div class="comment-author vcard"><?php commenter_link() ?></div> <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'uthili'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID() ); edit_comment_link(__('Edit', 'uthili'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div> <?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'uthili') ?> <div class="comment-content"> <?php comment_text() ?> </div> <?php // echo the comment reply link with help from Justin Tadlock http://justintadlock.com/ and Will Norris http://willnorris.com/ if($args['type'] == 'all' || get_comment_type() == 'comment') : comment_reply_link(array_merge($args, array( 'reply_text' => __('Reply','uthili'), 'login_text' => __('Log in to reply.','uthili'), 'depth' => $depth, 'before' => '<div class="comment-reply-link">', 'after' => '</div>' ))); endif; ?> <?php } // end custom_comments